[open-ils-commits] r12583 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 18 12:42:46 EDT 2009
Author: erickson
Date: 2009-03-18 12:42:44 -0400 (Wed, 18 Mar 2009)
New Revision: 12583
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
don't set ischanged if value is not changing, otherwise all copies are always updated
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-03-18 16:42:16 UTC (rev 12582)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2009-03-18 16:42:44 UTC (rev 12583)
@@ -238,9 +238,12 @@
});
widget.build();
dojo.connect(widget.widget, 'onChange',
- function() {
- copy[field](widget.getFormattedValue())
- copy.ischanged(true);
+ function(val) {
+ if(val != copy[field]()) {
+ // prevent setting ischanged() automatically on widget load
+ copy[field](widget.getFormattedValue())
+ copy.ischanged(true);
+ }
}
);
}
More information about the open-ils-commits
mailing list