From: Bill Erickson Date: Mon, 23 Jan 2017 16:25:11 +0000 (-0500) Subject: JBAS-1705 New heading does not fire at load X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=deace6f8392a185dfcc9d2a6bc7472956b5a09e0;p=working%2FEvergreen.git JBAS-1705 New heading does not fire at load Avoid starting the report until the user has initiated the report. Report date range defaults to yesterday. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/templates/cat/authority/new_headings.tt2 b/Open-ILS/src/templates/cat/authority/new_headings.tt2 index c51ab81040..9060e4570b 100644 --- a/Open-ILS/src/templates/cat/authority/new_headings.tt2 +++ b/Open-ILS/src/templates/cat/authority/new_headings.tt2 @@ -100,12 +100,12 @@
-
+ -
+ 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 af983931f1..bb2e18a7a6 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 @@ -75,7 +75,11 @@ function load() { load_headings(true); // reset } - load_headings(true); + // seed the report date with yesterday's date. + var initDate = new Date(); + initDate.setDate(initDate.getDate() - 1); + startDate.attr('value', initDate); + endDate.attr('value', initDate); } // Fetch headings.