source: extensions/floPure/Pure_default/local_head.tpl @ 16036

Last change on this file since 16036 was 16036, checked in by flop25, 12 years ago

correction for 2.3 : apply the js resizing only on pwpwg version !=24

File size: 823 bytes
Line 
1{if isset($PHPWG_VERSION_01) and $PHPWG_VERSION_01!="24"}
2{footer_script require='jquery'}
3{literal}
4var max_dim_width = 0;
5var max_dim_height = 0;
6jQuery(window).load(function() {
7  $(".thumbnails img").each(function () {
8    if (jQuery(this).height() > max_dim_height)
9      max_dim_height = jQuery(this).height() + 10;
10    if (jQuery(this).width() > max_dim_width)
11      max_dim_width = jQuery(this).width() + 10;
12
13    jQuery(".wrap2")
14      .css('width', max_dim_width+'px')
15      .css('height', max_dim_height+'px');
16    jQuery(".wrap1")
17      .css('width', max_dim_width+'px');
18  });
19});
20{/literal}
21{/footer_script}
22{/if}
23{if isset($MENUBAR) and isset($ELEMENT_CONTENT)}
24{html_head}{literal}
25<style>
26#imageHeaderBar, #imageToolBar {
27        background-image:none;
28}
29</style>
30{/literal}{/html_head}
31{/if}
32{$PHPWG_VERSION_01}
Note: See TracBrowser for help on using the repository browser.