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
7a53bcd7
Commit
7a53bcd7
authored
Jul 24, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #273 from rashidkpc/master
closes #264
parents
56862f8e
05b15c46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
panels/timepicker/module.js
+8
-8
No files found.
panels/timepicker/module.js
View file @
7a53bcd7
...
...
@@ -75,7 +75,13 @@ angular.module('kibana.timepicker', [])
// These 3 statements basicly do everything time_apply() does
set_timepicker
(
$scope
.
time
.
from
,
$scope
.
time
.
to
);
update_panel
();
// If we're in a mode where something must be calculated, clear existing filters
// and set new ones
if
(
$scope
.
panel
.
mode
!==
'absolute'
)
{
set_time_filter
(
$scope
.
time
);
}
dashboard
.
refresh
();
...
...
@@ -224,15 +230,9 @@ angular.module('kibana.timepicker', [])
function
set_time_filter
(
time
)
{
time
.
type
=
'time'
;
// Check if there's a time filter we remember, if not, set one and remember it
if
(
!
_
.
isUndefined
(
$scope
.
panel
.
filter_id
)
&&
!
_
.
isUndefined
(
filterSrv
.
list
[
$scope
.
panel
.
filter_id
])
&&
filterSrv
.
list
[
$scope
.
panel
.
filter_id
].
type
===
'time'
)
{
filterSrv
.
set
(
compile_time
(
time
),
$scope
.
panel
.
filter_id
);
}
else
{
// Clear all time filters, set a new one
filterSrv
.
removeByType
(
'time'
);
$scope
.
panel
.
filter_id
=
filterSrv
.
set
(
compile_time
(
time
));
}
return
$scope
.
panel
.
filter_id
;
}
...
...
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