details:   https://code.openbravo.com/erp/devel/pi/rev/3add0cfef5fa
changeset: 17966:3add0cfef5fa
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Mon Sep 17 13:27:00 2012 +0200
summary:   Fixes issue 21654: Selecting a blank option enables the save toolbar 
buttons

In the pickValue of the ob-formitem-list file, the _value attribute was set to 
'' to always trigger the update. This did not work because then selecting a 
blank option would not trigger the update.

Now, the _value attribute is set to a random number.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 48eb2242e8fb -r 3add0cfef5fa 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
        Fri Sep 14 15:03:28 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
        Mon Sep 17 13:27:00 2012 +0200
@@ -67,7 +67,7 @@
     // if the user has entered with the keyboard the exact content of a list 
option,
     // its callout would not be called because the change would not be detected
     // see issue https://issues.openbravo.com/view.php?id=21491
-    this._value = '';
+    this._value = (this.value) ? this._value.concat(Math.random()) : 
Math.random();
     this.Super('pickValue', arguments);
     delete this._pickedValue;
     if (this.moveFocusOnPickValue && this.form.focusInNextItem) {

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to