php7 fixes
[Pman.Builder] / Pman.Dialog.BuilderModule.js
index 541935f..9011061 100644 (file)
@@ -51,19 +51,18 @@ Pman.Dialog.BuilderModule = {
                                 {
                                     if (action.type == 'setdata') {
                                        if (_this.data.id) {
-                                           _this.dialog.el.mask("Loading");
-                                            this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+                                              this.load({ method: 'GET', params: { '_id' : _this.data.id }});
                                             return;
                                         }
                                        return;
                                     }
                                     if (action.type == 'load') {
-                                        _this.dialog.el.unmask();
+                                      
                                         return;
                                     }
                                     if (action.type =='submit') {
                                     
-                                        _this.dialog.el.unmask();
+                                       
                                         _this.dialog.hide();
                                     
                                          if (_this.callback) {
@@ -75,14 +74,12 @@ Pman.Dialog.BuilderModule = {
                                 },
                                 rendered : function (form)
                                 {
+                                    this.dialog = _this.dialog;
                                     _this.form= form;
                                 }
                             },
                             method : 'POST',
                             style : 'margin:10px;',
-                             : function() {
-                                
-                            },
                             url : baseURL + '/Roo/builder_modules.php',
                             items : [
                                 {
@@ -140,8 +137,7 @@ Pman.Dialog.BuilderModule = {
                         {
                             // do some checks?
                              
-                            
-                            _this.dialog.el.mask("Saving");
+                             
                             _this.form.doAction("submit");
                         
                         }