Index: ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recyclingErrors.jsp =================================================================== diff -u -r18621 -r18622 --- ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recyclingErrors.jsp (.../recyclingErrors.jsp) (revision 18621) +++ ssts-web/src/main/webapp/disinfectsystem/touchScreen/recycle/recyclingErrors.jsp (.../recyclingErrors.jsp) (revision 18622) @@ -219,12 +219,20 @@ success : function(msg) { var amount = parseInt(msg, 10); var items = new Array(); - for ( var i = 0; i < amount; i++) { + if(amount <= 0){ items.push({ - src : 'tousseImage.jsp?materialName=' + materialName + "&number=" + (i+1), + src : 'tousseImage.jsp?materialName=' + materialName + "&number=" + 1, type : 'iframe' }); + }else{ + for ( var i = 0; i < amount; i++) { + items.push({ + src : 'tousseImage.jsp?materialName=' + materialName + "&number=" + (i+1), + type : 'iframe' + }); + } } + window.parent.$.magnificPopup.open({ items : items, mainClass : 'materialPicClass',