details:   https://code.openbravo.com/erp/devel/pi/rev/56c00ac0c55b
changeset: 14070:56c00ac0c55b
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Mon Oct 24 00:48:18 2011 +0200
summary:   Fixes issue 18842: Disable Apply button when no value is selected in 
the default view dropdown

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views-popups.js
 |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r f5b7b81d640d -r 56c00ac0c55b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views-popups.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views-popups.js
        Sun Oct 23 17:55:13 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views-popups.js
        Mon Oct 24 00:48:18 2011 +0200
@@ -133,7 +133,7 @@
 OB.Personalization.ManageViewsPopupPropertiesDefault = {
   title: OB.I18N.getLabel('OBUIAPP_SetDefaultView'),
   actionLabel: OB.I18N.getLabel('OBUIAPP_Apply'),
-  toggleSave: false,
+  toggleSave: true,
  
   getFields: function() {
     var i, value, personalization = 
this.standardWindow.getClass().personalization, 
@@ -155,7 +155,13 @@
         editorType: 'select',
         addUnknownValues: false,
         required: true,
-        allowEmptyValue: true
+        allowEmptyValue: true,
+        changed: function() {
+          // enable the save button when there is a change
+          this.form.saveButton.setDisabled(false);
+          // don't let it be disabled again
+          this.form.toggleSave = false;
+        }
       },
       OB.Styles.Personalization.viewFieldDefaults,
       OB.Styles.OBFormField.DefaultComboBox

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to