Fix JS error.

This commit is contained in:
James Cole
2015-12-11 18:32:57 +01:00
parent 938581527e
commit e26d797d57

View File

@@ -5,6 +5,8 @@ $(function () {
"use strict"; "use strict";
drawChart(); drawChart();
if ($('#inputDateRange').length > 0) {
picker = $('#inputDateRange').daterangepicker( picker = $('#inputDateRange').daterangepicker(
{ {
locale: { locale: {
@@ -15,6 +17,7 @@ $(function () {
drops: 'up', drops: 'up',
} }
); );
}
// set values from cookies, if any: // set values from cookies, if any:
if (readCookie('report-type') !== null) { if (readCookie('report-type') !== null) {