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
7580042b
Commit
7580042b
authored
Dec 12, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed initialization bugs
parent
1f1959d9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletions
+13
-1
src/app/app.js
+3
-0
src/app/directives/kibanaPanel.js
+7
-1
src/app/services/dashboard.js
+3
-0
No files found.
src/app/app.js
View file @
7580042b
...
...
@@ -136,9 +136,12 @@ function (angular, $, _, appLevelRequire) {
var
$scope
=
this
;
$scope
.
requireContext
(
deps
,
function
()
{
var
deps
=
_
.
toArray
(
arguments
);
// Check that this is a valid scope.
if
(
$scope
.
$id
)
{
$scope
.
$apply
(
function
()
{
fn
.
apply
(
$scope
,
deps
);
});
}
});
};
}]);
...
...
src/app/directives/kibanaPanel.js
View file @
7580042b
...
...
@@ -61,16 +61,22 @@ function (angular) {
link
:
function
(
$scope
,
elem
,
attr
)
{
// once we have the template, scan it for controllers and
// load the module.js if we have any
var
newScope
=
$scope
.
$new
();
// compile the module and uncloack. We're done
function
loadModule
(
$module
)
{
$module
.
appendTo
(
elem
);
elem
.
wrap
(
container
);
/* jshint indent:false */
$compile
(
elem
.
contents
())(
$s
cope
);
$compile
(
elem
.
contents
())(
newS
cope
);
elem
.
removeClass
(
"ng-cloak"
);
}
newScope
.
$on
(
'$destroy'
,
function
(){
elem
.
unbind
();
elem
.
remove
();
});
$scope
.
$watch
(
attr
.
type
,
function
(
name
)
{
elem
.
addClass
(
"ng-cloak"
);
// load the panels module file, then render it in the dom.
...
...
src/app/services/dashboard.js
View file @
7580042b
...
...
@@ -134,6 +134,9 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
// here before telling the panels to refresh
this
.
refresh
=
function
()
{
if
(
self
.
current
.
index
.
interval
!==
'none'
)
{
if
(
_
.
isUndefined
(
filterSrv
))
{
return
;
}
if
(
filterSrv
.
idsByType
(
'time'
).
length
>
0
)
{
var
_range
=
filterSrv
.
timeRange
(
'last'
);
kbnIndex
.
indices
(
_range
.
from
,
_range
.
to
,
...
...
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