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
47db82d6
Commit
47db82d6
authored
Feb 20, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more modal loading optimizations
parent
af0374d5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
src/app/panels/annotations/module.html
+2
-1
src/app/panels/timepicker/module.js
+12
-8
src/app/partials/dashLoader.html
+1
-1
No files found.
src/app/panels/annotations/module.html
View file @
47db82d6
...
...
@@ -6,7 +6,7 @@
</div>
<div
class=
"submenu-control-edit"
>
<i
class=
"icon-cog pointer"
bs-modal=
"'app/panels/annotations/editor.html'
"
bs-tooltip=
"'Edit annotations'"
></i>
<i
class=
"icon-cog pointer"
config-modal=
"app/panels/annotations/editor.html
"
bs-tooltip=
"'Edit annotations'"
></i>
</div>
</div>
\ No newline at end of file
src/app/panels/timepicker/module.js
View file @
47db82d6
...
...
@@ -40,15 +40,9 @@ function (angular, app, _, moment, kbn) {
refresh_intervals
:
[
'5s'
,
'10s'
,
'30s'
,
'1m'
,
'5m'
,
'15m'
,
'30m'
,
'1h'
,
'2h'
,
'1d'
],
};
_
.
defaults
(
$scope
.
panel
,
_d
)
;
var
customTimeModal
=
null
;
var
customTimeModal
=
$modal
({
template
:
'./app/panels/timepicker/custom.html'
,
persist
:
true
,
show
:
false
,
scope
:
$scope
,
keyboard
:
false
});
_
.
defaults
(
$scope
.
panel
,
_d
);
$scope
.
filterSrv
=
filterSrv
;
...
...
@@ -72,6 +66,16 @@ function (angular, app, _, moment, kbn) {
};
$scope
.
customTime
=
function
()
{
if
(
!
customTimeModal
)
{
customTimeModal
=
$modal
({
template
:
'./app/panels/timepicker/custom.html'
,
persist
:
true
,
show
:
false
,
scope
:
$scope
,
keyboard
:
false
});
}
// Assume the form is valid since we're setting it to something valid
$scope
.
input
.
$setValidity
(
"dummy"
,
true
);
$scope
.
temptime
=
cloneTime
(
$scope
.
time
);
...
...
src/app/partials/dashLoader.html
View file @
47db82d6
...
...
@@ -45,7 +45,7 @@
<li
ng-show=
"dashboard.current.loader.save_local"
>
<a
class=
"link"
ng-click=
"dashboard.to_file()"
>
Export schema
</a>
</li>
<li
ng-show=
"showDropdown('share')"
><a
bs-tooltip=
"'Share'"
data-placement=
"bottom"
ng-click=
"elasticsearch_save('temp',dashboard.current.loader.save_temp_ttl)"
bs-modal=
"'app/partials/dashLoaderShare.html'
"
>
Share temp copy
</i></a></li>
<li
ng-show=
"showDropdown('share')"
><a
bs-tooltip=
"'Share'"
data-placement=
"bottom"
ng-click=
"elasticsearch_save('temp',dashboard.current.loader.save_temp_ttl)"
config-modal=
"app/partials/dashLoaderShare.html
"
>
Share temp copy
</i></a></li>
<li
ng-show=
"dashboard.current.loader.save_gist"
style=
"margin:10px"
>
<h6>
Gist
</h6>
...
...
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