diff --git a/static/plugin_dbui/src/appform.js b/static/plugin_dbui/src/appform.js index 9d4ce651b6ef4bc17f2d492ba21ad83ae88bb1e5..9c55713f9483729881940beb9593691e134f54d0 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.