X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Dialog.AdminCompanyMerge.bjs;h=d3364fa3c50cb9f81106781dafb22ec79001c0d9;hp=24e1174c7b147e62522febef310cf183922ab2c2;hb=HEAD;hpb=1f1351c7499ffccfa68d74d14437cb5c0ed71605 diff --git a/Pman.Dialog.AdminCompanyMerge.bjs b/Pman.Dialog.AdminCompanyMerge.bjs index 24e1174..d3364fa 100644 --- a/Pman.Dialog.AdminCompanyMerge.bjs +++ b/Pman.Dialog.AdminCompanyMerge.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Dialog.AdminCompanyMerge", "parent" : "", "title" : "", - "path" : "/home/edward/gitlive/Pman.Admin/Pman.Dialog.AdminCompanyMerge.bjs", + "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman.Admin/Pman.Dialog.AdminCompanyMerge.bjs", "permname" : "", "modOrder" : "001", "strings" : { @@ -41,12 +41,12 @@ { "listeners" : { "actionfailed" : "function (_self, action)\n{\n \n Pman.standardActionFailed(_self, action);\n}\n", - "actioncomplete" : "function (_self, action)\n{\n\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n \n if (action.type == 'setdata') {\n \n _this.dialog.setTitle(\"Delete selected \" + _this.data.name + \" and merge data with\");\n \n return;\n }\n \n}\n", - "rendered" : "function (form)\n{\n _this.form = form;\n}" + "rendered" : "function (form)\n{\n _this.form = form;\n}", + "actioncomplete" : "function (_self, action)\n{\n\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n \n if (action.type == 'setdata') {\n \n _this.dialog.setTitle(\"Delete selected \" + _this.data.name + \" and merge data with\");\n \n return;\n }\n \n}\n" }, "$ url" : "baseURL + '/Roo/Core_company.php'", - "method" : "POST", "xtype" : "Form", + "method" : "POST", "style" : "margin: 10px;", "$ xns" : "Roo.form", "items" : [ @@ -57,7 +57,7 @@ "fieldLabel" : "Merge with", "forceSelection" : true, "selectOnFocus" : true, - "pageSize" : 20, + "pageSize" : 25, "displayField" : "name", "emptyText" : "Select Item to Merge With", "hiddenName" : "_merge_id", @@ -70,13 +70,13 @@ "$ xns" : "Roo.form", "name" : "_merge_id_name", "qtip" : "Select Item to Merge With", - "queryParam" : "query[search_begins]", - "tpl" : "
{display_name} {name}
", + "queryParam" : "search[name]", + "tpl" : "
{name}
", "loadingText" : "Searching...", "items" : [ { "listeners" : { - "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n o.params['etype'] = _this.data.etype;\n \n o.params['!id'] = _this.form.findField('id').getValue();\n}\n" + "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n o.params['!id'] = _this.form.findField('id').getValue();\n}\n" }, "xtype" : "Store", "remoteSort" : true, @@ -86,8 +86,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Core_company'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -104,11 +104,6 @@ } ] }, - { - "xtype" : "Hidden", - "$ xns" : "Roo.form", - "name" : "etype" - }, { "xtype" : "Hidden", "$ xns" : "Roo.form",