1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 15:11:40 +02:00

Remove tip; add 'now' button

This commit is contained in:
Chaoyi Zha 2017-04-15 18:01:23 -04:00
parent c5ea681ed2
commit f896da86f3
2 changed files with 8 additions and 4 deletions

View File

@ -144,8 +144,12 @@ polr.controller('StatsCtrl', function($scope, $compile) {
var $leftPicker = $('#left-bound-picker');
var $rightPicker = $('#right-bound-picker');
$leftPicker.datetimepicker();
$rightPicker.datetimepicker();
var datePickerOptions = {
showTodayButton: true
}
$leftPicker.datetimepicker(datePickerOptions);
$rightPicker.datetimepicker(datePickerOptions);
$leftPicker.data("DateTimePicker").parseInputDate(parseInputDate);
$rightPicker.data("DateTimePicker").parseInputDate(parseInputDate);

View File

@ -23,10 +23,10 @@
<b>Long Link: </b>
<a target="_blank" href="{{ $link->long_url }}">{{ str_limit($link->long_url, 50) }}</a>
</p>
<p>
{{-- <p>
<em>Tip: Clear the right date bound (bottom box) to set it to the current date and time. New
clicks will not show unless the right date bound is set to the current time.</em>
</p>
</p> --}}
</div>
<div class="col-md-3">
<form action="" method="GET">