From: Edward Date: Mon, 4 May 2015 08:29:25 +0000 (+0800) Subject: Pman.Dialog.CoreNotifyRecurKeywords.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1d91ab07186cdcd3d6a942f12eb052fb31863398 Pman.Dialog.CoreNotifyRecurKeywords.bjs Pman.Dialog.CoreNotifyRecurKeywords.js --- diff --git a/Pman.Dialog.CoreNotifyRecurKeywords.bjs b/Pman.Dialog.CoreNotifyRecurKeywords.bjs index 9b7e3be2..7f90bd4e 100644 --- a/Pman.Dialog.CoreNotifyRecurKeywords.bjs +++ b/Pman.Dialog.CoreNotifyRecurKeywords.bjs @@ -44,7 +44,7 @@ "items" : [ { "listeners" : { - "|actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n \n if(_this.data.id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n }\n \n return;\n }\n if (action.type == 'load') {\n \n _this.dialog.el.unmask();\n \n _this.data = action.result.data;\n \n if(typeof(_this.data.keywords) != 'undefined'){\n _this.form.findField('keyword_filters').setValue(n);\n }\n \n return;\n }\n if (action.type == 'submit' ) {\n _this.dialog.el.unmask();\n _this.dialog.hide();\n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n }\n}\n", + "|actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n \n if(_this.data.id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n }\n \n return;\n }\n if (action.type == 'load') {\n \n _this.dialog.el.unmask();\n \n _this.data = action.result.data;\n \n if(typeof(_this.data.keywords) != 'undefined'){\n var n = Roo.decode(_this.data.keywords);\n _this.form.findField('keyword_filters').setValue(n);\n }\n \n return;\n }\n if (action.type == 'submit' ) {\n _this.dialog.el.unmask();\n _this.dialog.hide();\n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n }\n}\n", "|rendered" : "function (form)\n{\n _this.form = form;\n}" }, "$ url" : "baseURL + '/Roo/Core_notify_recur.php'", diff --git a/Pman.Dialog.CoreNotifyRecurKeywords.js b/Pman.Dialog.CoreNotifyRecurKeywords.js index 6753bcc4..bddf1de2 100644 --- a/Pman.Dialog.CoreNotifyRecurKeywords.js +++ b/Pman.Dialog.CoreNotifyRecurKeywords.js @@ -124,6 +124,7 @@ Pman.Dialog.CoreNotifyRecurKeywords = { _this.data = action.result.data; if(typeof(_this.data.keywords) != 'undefined'){ + var n = Roo.decode(_this.data.keywords); _this.form.findField('keyword_filters').setValue(n); }