|
|
function getMsgBox(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt){var i=i||i18next.t("common.Tips")||'<span data-i18n="common.Tips"><\/span>',it;toastr.options={closeButton:a,ResetButton:v,debug:y,newestOnTop:p,progressBar:w,positionClass:b||"toast-top-center",preventDuplicates:k,onclick:null};d&&(toastr.options.onclick=g);r&&(toastr.options.showDuration=r);toastr.options.ResetButton&&toastr.options.closeButton?t="<div>"+t+'<\/div><div style="float:right"><button type="button" id="okBtn" class="btn btn-success" data-i18n="common.Confirm">確認<\/button><button type="button" id="surpriseBtn" class="btn btn-primary" style="margin: 0 8px 0 8px" data-i18n="common.Cancel">取消<\/button><\/div>':!toastr.options.ResetButton&&toastr.options.closeButton&&(t+='<div style="float:right"><button type="button" id="okBtn" class="btn btn-info" data-i18n="common.Confirm">確認<\/button><\/div>');u&&(toastr.options.hideDuration=u);f&&(toastr.options.timeOut=f);e&&(toastr.options.extendedTimeOut=e);o&&(toastr.options.showEasing=o);s&&(toastr.options.hideEasing=s);h&&(toastr.options.showMethod=h);c&&(toastr.options.hideMethod=c);l&&(toastr.options.tapToDismiss=!1);it=toastr[n](t,i);it&&it.find("#okBtn").length&&(it.delegate("#okBtn","click",function(){if(toastr.clear(),$(".toast-close-button").click(),nt){var n=nt;n()}return!0}),transLang($("#okBtn")));it&&it.find("#surpriseBtn").length&&it.delegate("#surpriseBtn","click",function(){if(toastr.clear(),$(".toast-close-button").click(),tt){var n=tt;n()}return!1})}function msgAndGo(n,t,i,r){var it,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt;u="300";f="1000";e="0";o="0";s="swing";h="linear";c="fadeIn";l="fadeOut";a=!0;v=!0;y=!1;p=!0;w=!1;b=r;k=!1;d=!0;g=i;nt=null;tt=null;ResetButton=!1;t=t||"success";getMsgBox(t,n,it,u,f,e,o,s,h,c,l,a,v,ResetButton,y,p,w,b,k,d,g,nt,tt)}var showMsg=function(n,t,i,r){var u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt;u="300";f="1000";e="3000";o="1000";s="swing";h="linear";c="fadeIn";l="fadeOut";a=!1;v=!1;y=!1;p=!0;w=!1;b=i;k=!0;d=!0;g=null;nt=null;fnCl=null;ResetButton=!1;t=t||"info";getMsgBox(t,n,r,u,f,e,o,s,h,c,l,a,v,ResetButton,y,p,w,b,k,d,g,nt,fnCl)},showMsgAndGo=function(n,t,i,r,u){t!=""&&msgAndGo(n,r,function(){parent.openPageTab(t,i)},u)},showTips=function(n,t,i,r){var u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt;u="300";f="1000";e="0";o="0";s="swing";h="swing";c="fadeIn";l="fadeOut";a=!0;v=!1;y=!1;p=!1;w=!1;b="toast-edit-center";k=!1;d=!1;g=null;nt=null;fnCl=null;ResetButton=!1;t=t||"info";getMsgBox(t,n,r,u,f,e,o,s,h,c,l,a,v,ResetButton,y,p,w,b,k,d,g,nt,fnCl)};
|