source: extensions/pdf2tab/template/pdf2tab_thumbnails.tpl @ 19332

Last change on this file since 19332 was 19332, checked in by julien1311, 11 years ago

add tooltip

  • Property svn:eol-style set to LF
File size: 634 bytes
Line 
1{html_head}
2{literal}
3<script type="text/javascript">
4        //Add a link to the thumbnail
5        function pdf2tab_link() {
6                $("img[pdf2tab$=pdf]").closest('a').attr("target","_blank");
7{/literal}
8                $("img[pdf2tab$=pdf]").attr("title","{'Open the file in a new tab'|@translate}");
9{literal}
10                $("img[pdf2tab$=pdf]").closest('a').attr("href",$("img[pdf2tab$=pdf]").attr("pdf2tab"));
11        }
12 
13        //When the document has finiched to load
14        jQuery(document).ready(function(){
15                pdf2tab_link();
16        });
17 
18        //Allow pdf2tab to work with RV Thumb Scroller
19        jQuery(window).bind("RVTS_loaded", function(){
20                pdf2tab_link();
21        });
22</script>
23{/literal}
24{/html_head}
Note: See TracBrowser for help on using the repository browser.