All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.openmonitor.jui.dest.win.dialog.js Maven / Gradle / Ivy

(function(){JUI.Class("Dialog",{OPTS:{noCancelBtn:false,okText:"确定",cancelText:"取消",onOk:function(){},onCancel:function(){this.hide()},buttons:null},init:function(a){this._super(a)},getViewClass:function(){return JUI.DialogView},beforeRender:function(){this.buildDefButtons()},buildDefButtons:function(){var b=this;var a=this.opt("buttons");if(!a){a=[{text:this.opt("okText"),cls:"btn btn-primary",handler:function(){var d=b.opt("onOk");d&&d.call(b)}}];if(!this.opt("noCancelBtn")){var c={text:this.opt("cancelText"),handler:function(){var d=b.opt("onCancel");if(d){d.call(b)}else{b.hide()}}};a.push(c)}this.opt("buttons",a)}}},JUI.Win)})();




© 2015 - 2025 Weber Informatics LLC | Privacy Policy