(function(t){if(BX.Scale.ActionResultDialog)return;BX.Scale.ActionResultDialog=function(t){this.dialogWindow=null;this.result=t.result;this.actionName=t.actionName;this.pageRefresh=t.pageRefresh};BX.Scale.ActionResultDialog.prototype.buildContent=function(){var t="";if(this.result.ACTION_RESULT){t="";t+="";for(var e in this.result.ACTION_RESULT){var i="",s=this.result.ACTION_RESULT[e];if(s.ERROR)i+=s.ERROR;else if(s.OUTPUT&&s.OUTPUT.DATA&&s.OUTPUT.DATA.message)i=s.OUTPUT.DATA.message;t+="";t+="";if(s.RESULT=="OK")t+="";else t+="";t+="";t+=""}t+="
"+BX.message("SCALE_PANEL_JS_ARD_NAME")+""+BX.message("SCALE_PANEL_JS_ARD_RESULT")+""+BX.message("SCALE_PANEL_JS_ARD_MESSAGE")+"
"+this.result.ACTION_RESULT[e].NAME+"OK"+BX.message("SCALE_PANEL_JS_ERROR")+"
"+BX.util.htmlspecialchars(i)+"
"}return t};BX.Scale.ActionResultDialog.prototype.show=function(){var e=this.buildContent();BX.Scale.currentActionResultDialogContext=this;var i=BX.CAdminDialog.btnClose;if(this.pageRefresh){i.action=function(){this.parentWindow.Close();BX.Scale.AdminFrame.waitForPageRefreshing();t.location.reload(true)}}this.dialogWindow=new BX.CDialog({title:BX.message("SCALE_PANEL_JS_ARD_RES"),content:e,resizable:true,height:500,width:600,buttons:[i]});this.dialogWindow.Show();this.dialogWindow.adjustSizeEx()}})(window);