Changeset 1497
- Timestamp:
- 10.05.2011 20:52:51 (13 months ago)
- Location:
- ZMS/trunk
- Files:
-
- 6 edited
-
dtml/ZMS/manage_editorform.dtml (modified) (1 diff)
-
dtml/ZMSObject/input_js.dtml (modified) (1 diff)
-
dtml/ZMSWorkflowProvider/manage_main.dtml (modified) (1 diff)
-
dtml/object/manage_menu.dtml (modified) (1 diff)
-
plugins/www/jquery/jquery-all.min.js (modified) (1 diff)
-
www/comlib.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/dtml/ZMS/manage_editorform.dtml
r1289 r1497 140 140 } 141 141 if (taMinHeight==null) { 142 taMinHeight = $(ta). attr('offsetHeight') / 2;142 taMinHeight = $(ta).prop('offsetHeight') / 2; 143 143 } 144 144 var innerDims = getInnerDimensions(); 145 145 var bodyDims = getBodyDimensions(); 146 var newHeight = Math.max($(ta). attr('offsetHeight')+(innerDims.height-bodyDims.height)-10,taMinHeight);146 var newHeight = Math.max($(ta).prop('offsetHeight')+(innerDims.height-bodyDims.height)-10,taMinHeight); 147 147 ta.css('height',newHeight); 148 148 } -
ZMS/trunk/dtml/ZMSObject/input_js.dtml
r1465 r1497 22 22 } 23 23 if (taMinHeight==null) { 24 taMinHeight = $(ta). attr('offsetHeight') / 2;24 taMinHeight = $(ta).prop('offsetHeight') / 2; 25 25 } 26 26 var innerDims = getInnerDimensions(); 27 27 var bodyDims = getBodyDimensions(); 28 var newHeight = Math.max($(ta). attr('offsetHeight')+(innerDims.height-bodyDims.height)-10,taMinHeight);28 var newHeight = Math.max($(ta).prop('offsetHeight')+(innerDims.height-bodyDims.height)-10,taMinHeight); 29 29 ta.css('height',newHeight); 30 30 } -
ZMS/trunk/dtml/ZMSWorkflowProvider/manage_main.dtml
r1488 r1497 114 114 } 115 115 if (taMinHeight==null) { 116 taMinHeight = $(ta). attr('offsetHeight') / 2;116 taMinHeight = $(ta).prop('offsetHeight') / 2; 117 117 } 118 118 var innerDims = getInnerDimensions(); 119 119 var bodyDims = getBodyDimensions(); 120 var newHeight = Math.max($(ta). attr('offsetHeight')+(innerDims.height-bodyDims.height)-10,taMinHeight);120 var newHeight = Math.max($(ta).prop('offsetHeight')+(innerDims.height-bodyDims.height)-10,taMinHeight); 121 121 ta.css('height',newHeight); 122 122 } -
ZMS/trunk/dtml/object/manage_menu.dtml
r1289 r1497 407 407 pxinto = 0; 408 408 } 409 var dropimage_offsetHeight = dropimage. attr('offsetHeight');409 var dropimage_offsetHeight = dropimage.prop('offsetHeight'); 410 410 var zmstrashcan = $($("img",element)[1]).attr("src").toLowerCase().indexOf('zmstrashcan')>=0; 411 411 if (!zmstrashcan && posy < element.offsetTop + element.offsetHeight / 2 - pxinto) { -
ZMS/trunk/plugins/www/jquery/jquery-all.min.js
r1493 r1497 191 191 function getCoords(theElement){var coords={x:0,y:0};var element=theElement;while(element){coords.x+=element.offsetLeft;coords.y+=element.offsetTop;element=element.offsetParent} 192 192 return coords} 193 function getBodyDimensions(){if(document.body&&document.body.offsetWidth){var div=$('body>div');return {width:div. attr('offsetWidth'),height:div.attr('offsetHeight')}} else {return {width:0,height:0}}}193 function getBodyDimensions(){if(document.body&&document.body.offsetWidth){var div=$('body>div');return {width:div.prop('offsetWidth'),height:div.prop('offsetHeight')}} else {return {width:0,height:0}}} 194 194 function getInnerDimensions(){if(window.innerWidth){return {width:window.innerWidth,height:window.innerHeight}} else if(document.documentElement&&document.documentElement.clientWidth){return {width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}} else if(document.body&&document.body.clientWidth){return {width:document.body.clientWidth,height:document.body.clientHeight}} else {return {width:0,height:0}}} 195 195 function open_frame(title,url,params,width,height,options){href="f_frame";href+="?"+params;href+="&p_url="+url;href+="&p_title="+title;if(height > screen.availHeight||width > screen.availWidth){if(options.indexOf("scrollbars=")< 0){if(height > screen.availHeight)height=screen.availHeight;if(width > screen.availWidth)width=screen.availWidth;options+=",scrollbars=yes"}} -
ZMS/trunk/www/comlib.js
r1451 r1497 540 540 if (document.body && document.body.offsetWidth) { 541 541 var div = $('body>div'); 542 return {width: div. attr('offsetWidth'), height: div.attr('offsetHeight')};542 return {width: div.prop('offsetWidth'), height: div.prop('offsetHeight')}; 543 543 } else { 544 544 return {width: 0, height: 0};
Note: See TracChangeset
for help on using the changeset viewer.
