From e57435bc69b7ebc38e5e3a6eb6bae3cd7d649c51 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 7 Mar 2017 11:51:17 -0500 Subject: [PATCH] JBAS-1705 New headings defaults to yesterday repair 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 --- Open-ILS/web/js/ui/default/cat/authority/new_headings.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Open-ILS/web/js/ui/default/cat/authority/new_headings.js b/Open-ILS/web/js/ui/default/cat/authority/new_headings.js index b154511f20..751fd93d2c 100644 --- a/Open-ILS/web/js/ui/default/cat/authority/new_headings.js +++ b/Open-ILS/web/js/ui/default/cat/authority/new_headings.js @@ -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'); -- 2.11.0