diff --git a/public/app/core/utils/rangeutil.ts b/public/app/core/utils/rangeutil.ts index e4e14b7e606..db34e294628 100644 --- a/public/app/core/utils/rangeutil.ts +++ b/public/app/core/utils/rangeutil.ts @@ -16,8 +16,8 @@ var spans = { var rangeOptions = [ { from: 'now/d', to: 'now/d', display: 'Today', section: 2 }, - { from: 'now/w', to: 'now/w', display: 'This week', section: 2 }, { from: 'now/d', to: 'now', display: 'The day so far', section: 2 }, + { from: 'now/w', to: 'now/w', display: 'This week', section: 2 }, { from: 'now/w', to: 'now', display: 'Week to date', section: 2 }, { from: 'now/M', to: 'now/M', display: 'This month', section: 2 }, { from: 'now/y', to: 'now/y', display: 'This year', section: 2 }, diff --git a/public/app/features/dashboard/timeSrv.js b/public/app/features/dashboard/timeSrv.js index d88b8fd41a4..c956d73e2ab 100644 --- a/public/app/features/dashboard/timeSrv.js +++ b/public/app/features/dashboard/timeSrv.js @@ -23,7 +23,7 @@ define([ this._parseTime(); if(this.dashboard.refresh) { - this.set_interval(this.dashboard.refresh); + this.setAutoRefresh(this.dashboard.refresh); } }; @@ -64,7 +64,7 @@ define([ } }; - this.set_interval = function (interval) { + this.setAutoRefresh = function (interval) { this.dashboard.refresh = interval; if (interval) { var _i = kbn.interval_to_ms(interval); @@ -96,10 +96,10 @@ define([ // disable refresh if we have an absolute time if (_.isString(time.to) && time.to.indexOf('now') === -1) { this.old_refresh = this.dashboard.refresh || this.old_refresh; - this.set_interval(false); + this.setAutoRefresh(false); } else if (this.old_refresh && this.old_refresh !== this.dashboard.refresh) { - this.set_interval(this.old_refresh); + this.setAutoRefresh(this.old_refresh); this.old_refresh = null; } diff --git a/public/app/features/dashboard/timepicker/dropdown.html b/public/app/features/dashboard/timepicker/dropdown.html index 142f256c41c..95cbe3d4c9f 100644 --- a/public/app/features/dashboard/timepicker/dropdown.html +++ b/public/app/features/dashboard/timepicker/dropdown.html @@ -22,9 +22,10 @@ - + - @@ -41,55 +42,3 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/app/features/dashboard/timepicker/timepicker.html b/public/app/features/dashboard/timepicker/timepicker.html index d80066848dc..5f10ab22835 100644 --- a/public/app/features/dashboard/timepicker/timepicker.html +++ b/public/app/features/dashboard/timepicker/timepicker.html @@ -1,4 +1,4 @@ -