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
|
Rev | Line | |
---|
[16034] | 1 | {if isset($PHPWG_VERSION_01) and $PHPWG_VERSION_01!="24"} |
---|
[10106] | 2 | {footer_script require='jquery'} |
---|
| 3 | {literal} |
---|
| 4 | var max_dim_width = 0; |
---|
| 5 | var max_dim_height = 0; |
---|
[12013] | 6 | jQuery(window).load(function() { |
---|
[10106] | 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'); |
---|
[12007] | 16 | jQuery(".wrap1") |
---|
| 17 | .css('width', max_dim_width+'px'); |
---|
[10106] | 18 | }); |
---|
| 19 | }); |
---|
| 20 | {/literal} |
---|
| 21 | {/footer_script} |
---|
[16034] | 22 | {/if} |
---|
[11928] | 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} |
---|
[16036] | 32 | {$PHPWG_VERSION_01} |
---|
Note: See
TracBrowser
for help on using the repository browser.