details: https://code.openbravo.com/erp/devel/pi/rev/cffed2981aae
changeset: 15465:cffed2981aae
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Tue Feb 14 11:14:51 2012 +0100
summary: Fixes issue 19719: All records are now deselected when applying a
view
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
| 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (14 lines):
diff -r f52dabf2bdc4 -r cffed2981aae
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
Mon Feb 13 17:58:29 2012 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Tue Feb 14 11:14:51 2012 +0100
@@ -490,6 +490,10 @@
}
if (this.getDataSource()) {
+ //If the new state does not have any selected records then all the
records of the view are deselected
+ if (!localState.selected) {
+ this.deselectAllRecords();
+ }
// old versions stored selected records in grid view, this can cause
// problems if record is not selected yet
delete localState.selected;
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits