Pman.Dialog.CmsCategory.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 21 Sep 2010 04:29:10 +0000 (12:29 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 21 Sep 2010 04:29:10 +0000 (12:29 +0800)
Pman.Dialog.CmsCategory.js

index 657f8ed..97b6aaa 100644 (file)
@@ -49,9 +49,6 @@ Pman.Dialog.CmsCategory = {
                         {
                             xtype: 'Form',
                             xns: Roo.form,
-                            style : 'margin: 5px',
-                            url : baseURL + '/Roo/Category.php',
-                            method : 'POST',
                             listeners : {
                                 actionfailed : function (_self, action)
                                 {
@@ -72,16 +69,16 @@ Pman.Dialog.CmsCategory = {
                                         _this.form.reset();
                                         return;
                                     }
-                                    if (action.type = 'setdata') {
-                                       _this.grid.getDataSource().load();
-                                    
-                                    }
+                                     
                                 },
                                 rendered : function (_self)
                                 {
                                     _this.form = _self;
                                 }
                             },
+                            method : 'POST',
+                            style : 'margin: 5px',
+                            url : baseURL + '/Roo/Category.php',
                             items : [
                                 {
                                     xtype: 'TextField',