JBAS-1705 New headings defaults to yesterday repair
authorBill Erickson <berickxx@gmail.com>
Tue, 7 Mar 2017 16:51:17 +0000 (11:51 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Avoid clobbering the default date value when the first query is run.
Use the values (yesterday) set in the init function.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/cat/authority/new_headings.js

index b154511..751fd93 100644 (file)
@@ -134,15 +134,7 @@ function load_headings(is_new, new_page) {
     });
 }
 
-var first_load = true;
 function compile_date_filter() {
-
-    if (first_load) {
-        first_load = false;
-        startDate.attr('value', new Date());
-        endDate.attr('value', new Date());
-    }
-
     start_date = startDate.attr('value');
     end_date = endDate.attr('value');