Pman.Tab.AdminTranslations.bjs
[Pman.Admin] / Pman.Tab.AdminTranslations.js
index f066809..e76bf09 100644 (file)
@@ -457,10 +457,19 @@ Pman.Tab.AdminTranslations = new Roo.XComponent({
                                         return;
                                     }
                                     
-                                    s.data.is_active = s.data.is_active ? 0 : 1;
-                                    
-                                    s.data.commit();
-                                    
+                                    new Pman.Request({
+                                        url : baseURL+'/Roo/I18n',
+                                        method : 'POST',
+                                        params : {
+                                            id : s.data.id,
+                                            is_active : s.data.is_active ? 0 : 1
+                                        },
+                                        success: function(res)
+                                        {
+                                            _this.langgrid.ds.load({});
+                                            
+                                        }
+                                    }); 
                                     
                                 }
                             },