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
11934adf
Commit
11934adf
authored
Dec 27, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix saving of top level panel properties
parent
20b3a5d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/app/directives/configModal.js
+8
-3
No files found.
src/app/directives/configModal.js
View file @
11934adf
define
([
'angular'
'angular'
,
'underscore'
],
function
(
angular
)
{
function
(
angular
,
_
)
{
'use strict'
;
angular
...
...
@@ -15,11 +16,15 @@ function (angular) {
// re-render on show.
elem
.
bind
(
'click'
,
function
(){
// Create a temp scope so we can discard changes to it if needed
var
tmpScope
=
scope
.
$new
();
tmpScope
.
panel
=
angular
.
copy
(
scope
.
panel
);
tmpScope
.
editSave
=
function
(
panel
)
{
scope
.
panel
=
panel
;
// Correctly set the top level properties of the panel object
_
.
each
(
panel
,
function
(
v
,
k
)
{
scope
.
panel
[
k
]
=
panel
[
k
];
});
};
var
panelModal
=
$modal
({
...
...
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