Pman.Tab.AdminNotify.bjs
authorEdward <edward@roojs.com>
Wed, 11 Feb 2015 06:40:51 +0000 (14:40 +0800)
committerEdward <edward@roojs.com>
Wed, 11 Feb 2015 06:40:51 +0000 (14:40 +0800)
Pman.Tab.AdminNotify.js

Pman.Tab.AdminNotify.bjs
Pman.Tab.AdminNotify.js

index 1edb8fe..fa0cd3e 100644 (file)
@@ -31,7 +31,7 @@
                     "items" : [
                         {
                             "listeners" : {
-                                "beforeload" : "function (_self, options)\n{\n    options.params = options.params || {};\n    \n    options.params._evtype_align = 1;\n    \n    if (!_this.toggleBtn.pressed) {\n        options.params['event_id'] = 0;\n    }\n    if (!_this.personCombo) {\n        return false;\n    }\n    var p = _this.personCombo.getValue();\n    if (p*1) { \n        options.params.person_id = p;\n    }\n    \n    var from = _this.fromDateSel.getValue();\n    \n    if(from){\n        options.params.from = from.format('Y-m-d');\n    }\n    \n    var to = _this.toDateSel.getValue();\n    \n    if(to){\n        options.params.to = to.format('Y-m-d');\n    }\n    \n    var type = _this.typeCombo.getValue();\n    \n    if(type.length){\n        o.params.evtype = type;\n    }\n}"
+                                "beforeload" : "function (_self, options)\n{\n    options.params = options.params || {};\n    \n    options.params._evtype_align = 1;\n    \n    if (!_this.toggleBtn.pressed) {\n        options.params['event_id'] = 0;\n    }\n    if (!_this.personCombo) {\n        return false;\n    }\n    var p = _this.personCombo.getValue();\n    if (p*1) { \n        options.params.person_id = p;\n    }\n    \n    var from = _this.fromDateSel.getValue();\n    \n    if(from){\n        options.params.from = from.format('Y-m-d');\n    }\n    \n    var to = _this.toDateSel.getValue();\n    \n    if(to){\n        options.params.to = to.format('Y-m-d');\n    }\n    \n    var type = _this.typeCombo.getValue();\n    \n    if(type.length){\n        options.params.evtype = type;\n    }\n}"
                             },
                             "xtype" : "Store",
                             "remoteSort" : true,
index 844f51e..6e66148 100644 (file)
@@ -216,7 +216,7 @@ Pman.Tab.AdminNotify = new Roo.XComponent({
                               var type = _this.typeCombo.getValue();
                               
                               if(type.length){
-                                  o.params.evtype = type;
+                                  options.params.evtype = type;
                               }
                           }
                     },