Pman.Tab.BAdminCoreEnum.js
},
{
"listeners" : {
+ "render" : "function (_self)\n{\n _this.delete_btn = this;\n \n this.hide();\n}",
"click" : "function (_self, e)\n{\n var sel = _this.option_grid.getSelectionModel().getSelected();\n \n if(!sel || sel.data.id * 1 < 1){\n Roo.bootstrap.MessageBox.alert('Error', 'Please select a option');\n return;\n }\n\n new Pman.Request({\n url: baseURL + '/Roo/Core_enum.php',\n method : 'POST',\n params : {\n _delete : sel.data.id\n }, \n success : function(res) {\n _this.option_grid.store.load({});\n }\n });\n\n}"
},
"String weight" : "primary",
}
});
+ },
+ render : function (_self)
+ {
+ _this.delete_btn = this;
+
+ this.hide();
}
},
xns : Roo.bootstrap,