Skip to content

Commit

Permalink
Remove tip; add 'now' button
Browse files Browse the repository at this point in the history
  • Loading branch information
cydrobolt committed Apr 15, 2017
1 parent c5ea681 commit f896da8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions public/js/StatsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions resources/views/link_stats.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit f896da8

Please sign in to comment.