Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
15c1b48b
Commit
15c1b48b
authored
Jun 22, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
merged with master
parents
186f753a
d14a8606
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
CHANGELOG.md
+1
-0
src/app/services/dashboard/dashboardModel.js
+15
-11
No files found.
CHANGELOG.md
View file @
15c1b48b
...
...
@@ -10,6 +10,7 @@ vNext
-
Series names and column name typeahead cache fix (Fixes #522)
-
Fixed influxdb issue with raw query that caused wrong value column detection (Fixes #504)
-
Default property that marks which datasource is default in config.js is now optional (Fixes #526)
-
Auto-refresh caused 2 refreshes (and hence mulitple queries) each time (at least in firefox) (Fixes #342)
# 1.6.0 (2014-06-16)
...
...
src/app/services/dashboard/dashboardModel.js
View file @
15c1b48b
...
...
@@ -67,21 +67,25 @@ function (angular, $, kbn, _) {
$rootScope
.
$broadcast
(
'refresh'
);
};
p
.
set_interval
=
function
(
interval
)
{
this
.
refresh
=
interval
;
p
.
start_scheduled_refresh
=
function
(
after_ms
)
{
this
.
cancel_scheduled_refresh
();
this
.
refresh_timer
=
timer
.
register
(
$timeout
(
function
()
{
this
.
start_scheduled_refresh
(
after_ms
);
this
.
emit_refresh
();
}.
bind
(
this
),
after_ms
));
};
if
(
interval
)
{
var
_i
=
kbn
.
interval_to_ms
(
interval
);
p
.
cancel_scheduled_refresh
=
function
()
{
timer
.
cancel
(
this
.
refresh_timer
);
var
self
=
this
;
}
;
this
.
refresh_timer
=
timer
.
register
(
$timeout
(
function
(
)
{
self
.
set_interval
(
interval
)
;
self
.
emit_refresh
();
},
_i
)
);
this
.
emit_refresh
(
);
p
.
set_interval
=
function
(
interval
)
{
this
.
refresh
=
interval
;
if
(
interval
)
{
var
_i
=
kbn
.
interval_to_ms
(
interval
);
this
.
start_scheduled_refresh
(
_i
);
}
else
{
t
imer
.
cancel
(
this
.
refresh_timer
);
t
his
.
cancel_scheduled_refresh
(
);
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment