[open-ils-commits] r1404 - servres/trunk/conifer/static (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 19 22:43:38 EDT 2011
Author: gfawcett
Date: 2011-04-19 22:43:36 -0400 (Tue, 19 Apr 2011)
New Revision: 1404
Modified:
servres/trunk/conifer/static/edit_site.js
Log:
site add/edit: when setting the start term, if end term is blank, set it to the same value.
Modified: servres/trunk/conifer/static/edit_site.js
===================================================================
--- servres/trunk/conifer/static/edit_site.js 2011-04-19 20:48:28 UTC (rev 1403)
+++ servres/trunk/conifer/static/edit_site.js 2011-04-20 02:43:36 UTC (rev 1404)
@@ -1,4 +1,11 @@
$(function() {
var fuzzy = fuzzyFinder(
'#fuzzyinput', '#fuzzypanel', '#fuzzyedit', '#fuzzyview', '#fuzzyname', '#fuzzychange', '#owner');
+ $('#id_start_term').change(onStartTermChange);
});
+
+function onStartTermChange() {
+ if ($('#id_end_term').val() == "") {
+ $('#id_end_term').val($('#id_start_term').val());
+ }
+}
\ No newline at end of file
More information about the open-ils-commits
mailing list