Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2017-04-16 01:01:23 +0300
committerChaoyi Zha <summermontreal@gmail.com>2017-04-16 01:01:23 +0300
commitf896da86f369a92a4ecd803758cbdd02f9d44e94 (patch)
tree0843b982f0872b78b6a53ccd0631c181ef424940
parentc5ea681ed22a5ddcabb9321571a20a56376ca81e (diff)
Remove tip; add 'now' button
-rw-r--r--public/js/StatsCtrl.js8
-rw-r--r--resources/views/link_stats.blade.php4
2 files changed, 8 insertions, 4 deletions
diff --git a/public/js/StatsCtrl.js b/public/js/StatsCtrl.js
index 98a4e76..b662484 100644
--- a/public/js/StatsCtrl.js
+++ b/public/js/StatsCtrl.js
@@ -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);
diff --git a/resources/views/link_stats.blade.php b/resources/views/link_stats.blade.php
index 0eb524e..9083b30 100644
--- a/resources/views/link_stats.blade.php
+++ b/resources/views/link_stats.blade.php
@@ -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">