From 39c3118d7c09759351163d89c8fe17033d304372 Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <renaud.legac@free.fr>
Date: Sat, 26 Mar 2011 21:00:45 +0000
Subject: [PATCH] Polish

---
 static/plugin_dbui/src/appform.js | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/static/plugin_dbui/src/appform.js b/static/plugin_dbui/src/appform.js
index 9d4ce651..9c55713f 100644
--- a/static/plugin_dbui/src/appform.js
+++ b/static/plugin_dbui/src/appform.js
@@ -112,6 +112,20 @@ App.form.FormPanel = Ext.extend(Ext.form.FormPanel, {
         });
     },
 
+    /**
+     * Private method to enable/disable all fields of the form
+     * @param {Object} boolean
+     */
+    disableFields: function (bool) {
+        
+        var form = this.getForm();
+        
+        form.items.each(function (field) {
+            field.setDisabled(bool);
+        });
+
+    },
+
     /**
      * Handler to perform the current action on the store.
      * The current action is set by the setAction method.
@@ -264,20 +278,6 @@ App.form.FormPanel = Ext.extend(Ext.form.FormPanel, {
         }
     },
     
-    /**
-     * Private method to enable/disable all fields of the form
-     * @param {Object} boolean
-     */
-    disableFields: function (bool) {
-        
-        var form = this.getForm();
-        
-        form.items.each(function (field) {
-            field.setDisabled(bool);
-        });
-
-    },
-
     /**
      * Private method to update the selected record with the value of the form
      * This method have designed to handle foreign keys.
-- 
GitLab