Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/awaitForRecycleList.jsp =================================================================== diff -u -r25575 -r25637 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/awaitForRecycleList.jsp (.../awaitForRecycleList.jsp) (revision 25575) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/awaitForRecycleList.jsp (.../awaitForRecycleList.jsp) (revision 25637) @@ -226,7 +226,7 @@ function hideMask(){ $("#mask").hide(); } -var ab; +var alertDivControl; var lock = false; //锁定键盘 function lockup(e){ e.preventDefault(); } @@ -246,26 +246,26 @@ }else{ $('#idBoxCenterUserType').hide(); } - ab = new AlertBox("idBox"); - ab.onShow = function(){ + alertDivControl = new AlertBox("idBox"); + alertDivControl.onShow = function(){ if ( lock ) { $$E.addEvent( document, "keydown", lockup ); $$E.addEvent( this.box, "keydown", lockout ); OverLay.show(); } }; - ab.onClose = function(){ + alertDivControl.onClose = function(){ $$E.removeEvent( document, "keydown", lockup ); $$E.removeEvent( this.box, "keydown", lockout ); OverLay.close(); }; - ab.center = true; - ab.show(); + alertDivControl.center = true; + alertDivControl.show(); } function closeDiv(){ - ab.close(); - $(".idBox-back").hide(); + alertDivControl.close(); + $(".idBox-back").hide(); } //根据字符串长度获取字体,在print.js中有定义,但是print.js有引用extjs,不能引用那个js文件,所以重新定义一份 function getFontSizeByStr(str,cfg){ @@ -1326,7 +1326,6 @@ } $("#idBox").hide(); $(".idBox-back").hide(); - ab.onClose(); if(printType == 0){//直接打印 windowState = "close"; }