details: https://code.openbravo.com/erp/devel/pi/rev/803d0686dbd3
changeset: 18070:803d0686dbd3
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Fri Sep 28 11:24:29 2012 +0200
summary: Fixes bug 21697: When a date filter is removed, it is applied when
tabbing out
Before this fix, in order to delete a date filter the Enter key had to be
pressed. This was not consistent, because in order to apply a not-null date
filter, it was enough to tab out of the column. Now, if the date filter text is
deleted and the column loses the focus, the change will be applied even if the
Enter key is not pressed.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
| 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r fe3bcfb01f48 -r 803d0686dbd3
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
Fri Sep 28 10:52:06 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
Fri Sep 28 11:24:29 2012 +0200
@@ -278,6 +278,12 @@
return;
}
+ // Apply the empty filter if the date text has been deleted
+ // See issue https://issues.openbravo.com/view.php?id=21697
+ if (newValue === '') {
+ return true;
+ }
+
if (newValue === oldValue) {
return false;
}
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits