Related to issue 22901: Changed var name
authorDavid Baz Fayos <david.baz@openbravo.com>
Sun, 27 Jan 2013 00:55:42 +0100
changeset 19458 8215f88cf681
parent 19457 16eca807e2a3
child 19459 7b271be20db9
Related to issue 22901: Changed var name
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js	Sun Jan 27 00:38:37 2013 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js	Sun Jan 27 00:55:42 2013 +0100
@@ -171,7 +171,7 @@
     var field = this.getField(colNum),
         rowNum = this.getRecordIndex(record),
         isEditRecord = rowNum === this.getEditRow(),
-        canvas, clientClass, clientClassPropsStartPosition, clientClassProps, clientClassIsShownInEdit;
+        canvas, clientClass, clientClassPropsStartPosition, clientClassProps, clientClassIsShownInGridEdit;
 
     if (field.isLink && !field.clientClass && record[field.name]) {
       // To keep compatibility with < 3.0MP20 versions that didn't implement 'clientClass' and only have 'isLink' property
@@ -194,9 +194,9 @@
       }
       clientClass = clientClass.replace(/\s+/g, '');
 
-      clientClassIsShownInEdit = new Function('return ' + clientClass + '.getInstanceProperty("isShownInEdit")')();
+      clientClassIsShownInGridEdit = new Function('return ' + clientClass + '.getInstanceProperty("isShownInGridEdit")')();
 
-      if (!isEditRecord || clientClassIsShownInEdit) {
+      if (!isEditRecord || clientClassIsShownInGridEdit) {
         canvas = isc.ClassFactory.newInstance(clientClass, {
           grid: this,
           align: this.getCellAlign(record, rowNum, colNum),
@@ -798,7 +798,7 @@
   height: 1,
   width: '100%',
 
-  isShownInEdit: true,
+  isShownInGridEdit: true,
   initWidget: function () {
     this.btn = isc.OBGridLinkButton.create({});
     this.btn.setTitle(this.title);