Commit 11934adf by Rashid Khan

Fix saving of top level panel properties

parent 20b3a5d3
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({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment