Pman.Tab.AdminEnums.bjs
authorChris <chris@roojs.com>
Thu, 4 Jul 2013 10:19:51 +0000 (18:19 +0800)
committerChris <chris@roojs.com>
Thu, 4 Jul 2013 10:19:51 +0000 (18:19 +0800)
Pman.Tab.AdminEnums.js

Pman.Tab.AdminEnums.bjs
Pman.Tab.AdminEnums.js

index 9f95d1e..e2bc6e6 100644 (file)
                                 },
                                 {
                                     "listeners": {
-                                        "|click": "function()\n{\n    \n    // if we do not have a selected type... - what should we show..?\n    var et = _this.etypeCombo.getValue();\n    var ds = _this.grid.getSelectionModel().getSelected();\n    if (!et) {\n        Roo.MessageBox.alert(\"Error\", \"Select a pulldown\");\n        return;\n    }\n    Roo.log(ds);\n    //Pman.Dialog.AdminEnumImages.show({onid:ds.id});\n    \n}\n"
+                                        "|click": "function()\n{\n    \n    // if we do not have a selected type... - what should we show..?\n    var et = _this.etypeCombo.getValue();\n    \n    if (!et) {\n        Roo.MessageBox.alert(\"Error\", \"Select a pulldown\");\n        return;\n    }\n    var ds = _this.grid.getSelectionModel().getSelected();\n    \n    Roo.log(ds);\n    //Pman.Dialog.AdminEnumImages.show({onid:ds.id});\n    \n}\n"
                                     },
                                     "cls": "x-btn-text-icon",
                                     "text": "Add Images",
index 02c184e..27e9c96 100644 (file)
@@ -263,11 +263,13 @@ Pman.Tab.AdminEnums = new Roo.XComponent({
                                     
                                     // if we do not have a selected type... - what should we show..?
                                     var et = _this.etypeCombo.getValue();
-                                    var ds = _this.grid.getSelectionModel().getSelected();
+                                    
                                     if (!et) {
                                         Roo.MessageBox.alert("Error", "Select a pulldown");
                                         return;
                                     }
+                                    var ds = _this.grid.getSelectionModel().getSelected();
+                                    
                                     Roo.log(ds);
                                     //Pman.Dialog.AdminEnumImages.show({onid:ds.id});