Fixes issue 17271: IE9: When editing the grid using Arrow down key to move down, in document no field you lose the value
authorMartin Taal <martin.taal@openbravo.com>
Wed, 01 Jun 2011 22:59:04 +0200
changeset 12662 8ed05d7554d8
parent 12661 7b6d53303a75
child 12663 f8df9380938e
Fixes issue 17271: IE9: When editing the grid using Arrow down key to move down, in document no field you lose the value
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js	Wed Jun 01 22:29:17 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js	Wed Jun 01 22:59:04 2011 +0200
@@ -23,6 +23,7 @@
 
 isc.OBListItem.addProperties({
   operator: 'equals',
+  hasPickList: true,
   showPickListOnKeypress: true,  
   cachePickListResults: false,
   validateOnExit: true,  
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Wed Jun 01 22:29:17 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js	Wed Jun 01 22:59:04 2011 +0200
@@ -873,7 +873,7 @@
     }
     if (editValues) {
       editValues[fldName + '_textualValue'] = textValue;
-    } else if (this.grid) {
+    } else if (this.grid && this.grid.getEditForm()) {
       this.grid.getEditValues(this.grid.getEditRow())[fldName + '_textualValue'] = textValue;
     }
     this.setValue(fldName + '_textualValue', textValue);
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Wed Jun 01 22:29:17 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js	Wed Jun 01 22:59:04 2011 +0200
@@ -1838,7 +1838,7 @@
       newValues = this.getEditValues(editValuesID);
     } else {
       var editForm = this.getEditForm(), focusItem = editForm.getFocusItem();
-      if (focusItem) {
+      if (focusItem && !focusItem.hasPickList) {
         focusItem.updateValue();
         editForm.handleItemChange(focusItem);
         if (editForm.inFicCall) {
@@ -1881,7 +1881,6 @@
         isc.Log.logDebug('hideInlineEditor has NO record and editColumnLayout', 'OB');
       }
       this.view.isEditingGrid = false;
-      this.refreshRow(rowNum);
     }
 
     if (editForm) {