Avoid starting the report until the user has initiated the report.
Report date range defaults to yesterday.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
<div id='below-nav-div'>
- <div id='loading-indicator'>
+ <div id='loading-indicator' class="hidden">
Loading page <span id='ind-page'></span>...
<img src='/opac/images/progressbar_green.gif'/>
</div>
- <div id='zero-hits'>
+ <div id='zero-hits' class="hidden">
No new headings were found for the date range specified
</div>
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.