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
d6f1c379
Commit
d6f1c379
authored
Sep 23, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed text editor & scope issue
parent
6794260e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
src/app/directives/panelMenu.js
+1
-1
src/app/services/panelSrv.js
+11
-7
No files found.
src/app/directives/panelMenu.js
View file @
d6f1c379
...
...
@@ -53,7 +53,6 @@ function (angular, $, _) {
link
:
function
(
$scope
,
elem
)
{
var
$link
=
$
(
linkTemplate
);
var
$panelContainer
=
elem
.
parents
(
".panel-container"
);
var
menuTemplate
=
createMenuTemplate
(
$scope
);
var
menuWidth
=
246
;
var
menuScope
=
null
;
var
timeout
=
null
;
...
...
@@ -106,6 +105,7 @@ function (angular, $, _) {
menuLeftPos
=
0
;
}
var
menuTemplate
=
createMenuTemplate
(
$scope
);
$menu
=
$
(
menuTemplate
);
$menu
.
css
(
'left'
,
menuLeftPos
);
$menu
.
mouseleave
(
function
()
{
...
...
src/app/services/panelSrv.js
View file @
d6f1c379
...
...
@@ -20,13 +20,8 @@ function (angular, _) {
},
{
text
:
'edit'
,
editorLink
:
"app/partials/paneleditor.html"
,
condition
:
!
$scope
.
panelMeta
.
fullscreenEdit
},
{
text
:
'edit'
,
click
:
"toggleFullscreen(true)"
,
condition
:
$scope
.
panelMeta
.
fullscreenEdit
click
:
'editPanel()'
,
condition
:
true
,
},
{
text
:
'duplicate'
,
...
...
@@ -66,6 +61,15 @@ function (angular, _) {
$scope
.
inspector
=
{};
$scope
.
panelMeta
.
menu
=
_
.
where
(
menu
,
{
condition
:
true
});
$scope
.
editPanel
=
function
()
{
if
(
$scope
.
panelMeta
.
fullscreenEdit
)
{
$scope
.
toggleFullscreen
(
true
);
}
else
{
$scope
.
emitAppEvent
(
'show-dash-editor'
,
{
src
:
'app/partials/paneleditor.html'
,
scope
:
$scope
});
}
};
$scope
.
editPanelJson
=
function
()
{
$scope
.
emitAppEvent
(
'show-json-editor'
,
{
object
:
$scope
.
panel
,
updateHandler
:
$scope
.
replacePanel
});
};
...
...
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