Index: ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js =================================================================== diff -u -r37751 -r37752 --- ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js (.../directPacking.js) (revision 37751) +++ ssts-web/src/main/webapp/disinfectsystem/packing/directPacking.js (.../directPacking.js) (revision 37752) @@ -547,26 +547,7 @@ image.src = '', image.src = url;// 覆盖原来的图片 image.onclick = function(){ - var imgContainer = $('
'); - var imgObj = $(''); - imgContainer.css({ - 'position': 'absolute', - 'z-index': '1000000000000000000001', - 'margin-right': '0px', - 'margin-left': '0px', - 'text-align': 'center', - 'width': '100%', - 'height':'100%', - 'cursor': 'pointer' - }); - imgObj.appendTo(imgContainer); - imgContainer.appendTo($(top.window.document.body)); - var height = $(top.window.document.body).height() - imgObj.height(); - height = height>0?(height/2):0; - imgContainer.css('top',height); - imgObj.click(function(){ - imgContainer.remove(); - }); + return false; }; } @@ -581,27 +562,7 @@ image.src = '', image.src = url;// 覆盖原来的图片 image.onclick = function(){ - //coverLayer(1); - var imgContainer = $('
'); - var imgObj = $(''); - imgContainer.css({ - 'position': 'absolute', - 'z-index': '1000000000000000000001', - 'margin-right': '0px', - 'margin-left': '0px', - 'text-align': 'center', - 'width': '100%', - 'height':'100%', - 'cursor': 'pointer' - }); - imgObj.appendTo(imgContainer); - imgContainer.appendTo($(top.window.document.body)); - var height = $(top.window.document.body).height() - imgObj.height(); - height = height>0?(height/2):0; - imgContainer.css('top',height); - imgObj.click(function(){ - imgContainer.remove(); - }); + return false; } }