Pman.Dialog.CoreNotifyRecurKeywords.bjs
authorEdward <edward@roojs.com>
Mon, 4 May 2015 08:29:25 +0000 (16:29 +0800)
committerEdward <edward@roojs.com>
Mon, 4 May 2015 08:29:25 +0000 (16:29 +0800)
Pman.Dialog.CoreNotifyRecurKeywords.js

Pman.Dialog.CoreNotifyRecurKeywords.bjs
Pman.Dialog.CoreNotifyRecurKeywords.js

index 9b7e3be..7f90bd4 100644 (file)
@@ -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'",
index 6753bcc..bddf1de 100644 (file)
@@ -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);
                   }