Changeset 16935 for extensions/Autosize/template/picture.tpl
- Timestamp:
- Jul 23, 2012, 3:34:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/template/picture.tpl
r16931 r16935 21 21 22 22 <script language="JavaScript" type="text/javascript"> 23 {if $ASP.width} 23 var src1="{$cl_autosize_button.ICON}"; 24 var src2="{$cl_autosize_button.ICON2}"; 25 var src3="{'cl_autosize_info_2'|@translate}"; 26 var src4 = "{'cl_autosize_info'|@translate}"; 27 var src5 = "{'cl_autosize_info_1'|@translate}"; 28 var src6 = "{$cl_autosize_button.ICON1}"; 29 30 {if $ASP.width} 24 31 jQuery(window).load(function () {ldelim} 25 var asp_options ={ldelim} };32 var asp_options ={ldelim} }; 26 33 if(typeof $("#imageToolBar") !="undefined" ) 27 28 29 34 var w = $("#imageToolBar").width(); 35 if (w === null) {ldelim} w = $("#theImage").width(); } 36 if (w < {$ASP.min_viewport_width}) {ldelim} w = .75 * $("#theImage").width(); } 30 37 var m = w; 31 38 w = w * ( Math.min( Math.max({$ASP.viewport_width} / 100, .5) , 1 )); … … 49 56 }); 50 57 {/if} 51 52 var src1="{$cl_autosize_button.ICON}";53 var src2="{$cl_autosize_button.ICON2}";54 var src3="{'cl_autosize_info_2'|@translate}";55 var src4 = "{'cl_autosize_info'|@translate}";56 var src5 = "{'cl_autosize_info_1'|@translate}";57 var src6 = "{$cl_autosize_button.ICON1}";58 58 </script> 59 59
Note: See TracChangeset
for help on using the changeset viewer.