Fixes issue 17936 Using Internet Explorer, I can not change the Tax in Sales Invoice lines
authorMartin Taal <martin.taal@openbravo.com>
Fri, 29 Jul 2011 05:52:45 +0200
changeset 13340 736087383d76
parent 13339 a7a2befbb130
child 13341 39cca0f426d8
Fixes issue 17936 Using Internet Explorer, I can not change the Tax in Sales Invoice lines
Disabled the disabled-event-mask used by SC in some cases, works fine for IE9 now
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js	Thu Jul 28 20:43:04 2011 +0200
+++ b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js	Fri Jul 29 05:52:45 2011 +0200
@@ -50,6 +50,18 @@
 
 isc.StaticTextItem.getPrototype().getCanFocus = function() {return false;};
 
+isc.TextItem.addProperties({
+  // see comments in super type for useDisabledEventMask
+  // http://forums.smartclient.com/showthread.php?p=70160#post70160
+  // https://issues.openbravo.com/view.php?id=17936
+  useDisabledEventMask: function() {
+    if (isc.Browser.isIE) {
+      return false;
+    }
+    return this.Super('useDisabledEventMask', arguments);
+  }
+});
+
 // NOTE BEWARE: methods/props added here will overwrite and NOT extend FormItem
 // properties! 
 isc.FormItem.addProperties({
@@ -130,7 +142,7 @@
       this.selectValue();
     }
   },
-
+  
   blur: function(form, item){
     if (item._hasChanged && form && form.handleItemChange) {
       form.handleItemChange(this);