Pman.Dialog.BuilderProp.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 31 Dec 2010 09:48:35 +0000 (17:48 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 31 Dec 2010 09:48:35 +0000 (17:48 +0800)
Pman.Dialog.BuilderProp.js

index dbef75c..cbc3582 100644 (file)
@@ -329,10 +329,14 @@ Pman.Dialog.BuilderProp = {
                         click : function (_self, e)
                         {
                             // do some checks?
-                             
+                             var sel = _this.grid.getSelectionModel().getSelected();
+                            if (!sel) {
+                                Roo.MessageBox.alert("Error", "Select a property");
+                            }
                             
-                            _this.dialog.el.mask("Saving");
-                            _this.form.doAction("submit");
+                            _this.callback(sel.data.name);
+                           _this.dialog.hide();
+                         
                         
                         }
                     },