{ "id": "roo-file-200", "name": "Pman.Tab.BuilderTop", "parent": "Pman.Tab.BuilderTab", "title": "Pman.Tab.BuilderTop", "path": "/home/edward/gitlive/Pman.Builder/Pman.Tab.BuilderTop.bjs", "items": [ { "background": true, "fitToFrame": true, "region": "north", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "|xns": "Roo", "xtype": "Toolbar", "*prop": "toolbar", "items": [ { "text": "Manage Modules", "xtype": "Button", "|xns": "Roo.Toolbar", "items": [ { "|xns": "Roo.menu", "xtype": "Menu", "*prop": "menu", "items": [ { "listeners": { "click": "function (_self, e)\n{\n Pman.Dialog.BuilderModule.show({\n id : 0\n },function(data) {\n if (data) {\n _this.modsel.setFromData(data);\n }\n });\n\n}" }, "text": "Create", "xtype": "Item", "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'", "|xns": "Roo.menu" }, { "listeners": { "click": "function (_self, e)\n{\n \n if (!_this.modsel.getValue()) {\n Roo.MessageBox.alert(\"Error\", \"Select Module\");\n return false;\n }\n Pman.Dialog.BuilderModule.show( { id : _this.modsel.getValue() } ,function(data) {\n if (data) {\n _this.modsel.setFromData(data);\n }\n });\n\n}" }, "text": "Edit", "xtype": "Item", "|xns": "Roo.menu" }, { "listeners": { "click": "function (_self, e)\n{\n \n\n}" }, "text": "Delete", "xtype": "Item", "|xns": "Roo.menu" }, { "|xns": "Roo.menu", "xtype": "Separator" }, { "listeners": { "click": "function (_self, e)\n{\n new Pman.Request({\n method : 'GET',\n url : baseURL + '/Roo/Builder_modules.php',\n params : {\n 'query[_sync]' : 1\n },\n success : function() {\n Roo.MessageBox.alert(\"Done\", \"Re-syned modules\");\n }\n });\n}" }, "text": "Sync", "xtype": "Item", "|xns": "Roo.menu" } ] } ] }, { "listeners": { "select": "function (combo, record, index)\n{\n _this.filesel.reset();\n _this.filesel.fireEvent('select', false);\n\n}", "render": "function (_self)\n{\n _this.modsel = this;\n}" }, "allowBlank": true, "alwaysQuery": true, "displayField": "name", "editable": false, "forceSelection": true, "listWidth": 300, "loadingText": "Searching...", "minChars": 2, "pageSize": 40, "queryParam": "query[name]", "selectOnFocus": true, "tpl": "