Merge #918. Fix date-range button selection issue

This commit is contained in:
Abdullah Almsaeed 2016-03-14 12:14:28 -04:00
parent fe147c9b21
commit bd61a3b66b

View file

@ -756,7 +756,9 @@
<div class="input-group">
<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>
</button>
</div>
@ -1144,7 +1146,7 @@
endDate: moment()
},
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'));
}
);