details:   https://code.openbravo.com/erp/devel/pi/rev/433a0c50b71c
changeset: 17667:433a0c50b71c
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Tue Aug 14 09:57:47 2012 +0200
summary:   Fixes issue 21290: Creating first record no longer unresponsive

If a new record was created in a parent tab, and then the Create One record in 
the child tab was pushed while the focus was still in the parent tab, then the 
browser would freeze for a while and the Unresponsive Script warning would be 
shown (only in Firefox).

diffstat:

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

diffs (12 lines):

diff -r c09f1cab33d9 -r 433a0c50b71c 
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/grid/ob-view-grid.js
     Tue Aug 14 08:56:13 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue Aug 14 09:57:47 2012 +0200
@@ -899,7 +899,7 @@
     if (this.uiPattern === 'SR' || this.uiPattern === 'RO') {
       this.noDataEmptyMessage = '<span class="' + this.emptyMessageStyle + 
'">' + OB.I18N.getLabel('OBUIAPP_NoDataInGrid') + '</span>';
     } else {
-      this.noDataEmptyMessage = '<span class="' + this.emptyMessageStyle + 
'">' + OB.I18N.getLabel('OBUIAPP_GridNoRecords') + '</span>' + '<span 
onclick="window[\'' + this.ID + '\'].view.newRow();" class="' + 
this.emptyMessageLinkStyle + '">' + OB.I18N.getLabel('OBUIAPP_GridCreateOne') + 
'</span>';
+      this.noDataEmptyMessage = '<span class="' + this.emptyMessageStyle + 
'">' + OB.I18N.getLabel('OBUIAPP_GridNoRecords') + '</span>' + '<span 
onclick="this.onclick = new Function(); setTimeout(function() { window[\'' + 
this.ID + '\'].view.newRow(); }, 50); return false;" class="' + 
this.emptyMessageLinkStyle + '">' + OB.I18N.getLabel('OBUIAPP_GridCreateOne') + 
'</span>';
     }
     this.resetEmptyMessage();
 

------------------------------------------------------------------------------
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