Changeset 18735 for extensions/Autosize/js/autosizeDetect.js
- Timestamp:
- Oct 25, 2012, 3:24:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Autosize/js/autosizeDetect.js
r18716 r18735 15 15 myHeight = document.body.clientHeight; 16 16 } 17 myWidth =parseInt( myWidth);18 myHeight = parseInt(myHeight);17 windowWidth =parseInt( myWidth); 18 windowHeight = parseInt(myHeight); 19 19 20 jQuery.cookie('windowHeight', myWidth, { path: COOKIE_PATH }); 21 jQuery.cookie('windowWidth', myHeight, { path: COOKIE_PATH }); 20 theImageRight = 2; 21 theImageLeft=261; 22 theImageMargeWidth=0; 22 23 23 jQuery.cookie('theImageHeight', myHeight, { path: COOKIE_PATH }); 24 jQuery.cookie('theImageWidth', myWidth, { path: COOKIE_PATH }); 24 theImageTop =73; 25 theImageBottom = 0; 26 theImageMargeHeight=0; 27 jQuery.cookie('windowHeight', myHeight, { path: COOKIE_PATH }); 28 jQuery.cookie('windowWidth', myWidth, { path: COOKIE_PATH }); 25 29 26 jQuery.cookie('theImageHeight', theMainImageHeight, { path: COOKIE_PATH }); 27 jQuery.cookie('theImageWidth', theMainImageWidth, { path: COOKIE_PATH }); 30 jQuery.cookie('theImageRight', theImageRight, { path: COOKIE_PATH }); 31 jQuery.cookie('theImageLeft',theImageLeft, { path: COOKIE_PATH }); 32 jQuery.cookie('theImageMargeWidth',theImageMargeWidth, { path: COOKIE_PATH }); 28 33 34 jQuery.cookie('theImageTop',theImageTop, { path: COOKIE_PATH }); 35 jQuery.cookie('theImageBottom',theImageBottom, { path: COOKIE_PATH }); 36 jQuery.cookie('theImageMargeHeight', theImageMargeHeight, { path: COOKIE_PATH }); 37 /* 38 theImageWidth = windowWidth - theImageRight - theImageLeft - theImageMargeWidth; 39 theImageHeight = windowHeight - theImageTop - theImageBottom - theImageMargeHeight; 40 jQuery.cookie('theImageHeight', theImageHeight, { path: COOKIE_PATH }); 41 jQuery.cookie('theImageWidth', theImageWidth, { path: COOKIE_PATH }); 42 jQuery.cookie('theMainImageHeight', theMainImageHeight, { path: COOKIE_PATH }); 43 jQuery.cookie('theMainImage', theMainImageWidth, { path: COOKIE_PATH }); 44 */ 29 45 30 46 jQuery.cookie('autosize_reload', "ok", { path: COOKIE_PATH });
Note: See TracChangeset
for help on using the changeset viewer.