Merge #918. Fix date-range button selection issue

pull/974/head
Abdullah Almsaeed 9 years ago
parent fe147c9b21
commit bd61a3b66b

@ -756,7 +756,9 @@
<div class="input-group"> <div class="input-group">
<button type="button" class="btn btn-default pull-right" id="daterange-btn"> <button type="button" class="btn btn-default pull-right" id="daterange-btn">
<i class="fa fa-calendar"></i> Date range picker <span>
<i class="fa fa-calendar"></i> Date range picker
</span>
<i class="fa fa-caret-down"></i> <i class="fa fa-caret-down"></i>
</button> </button>
</div> </div>
@ -1144,7 +1146,7 @@
endDate: moment() endDate: moment()
}, },
function (start, end) { function (start, end) {
$('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY')); $('#daterange-btn span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
} }
); );

Loading…
Cancel
Save