fixed close of full edit mode

This commit is contained in:
Torkel Ödegaard
2013-12-09 09:13:13 +01:00
parent 79395cc6ea
commit 24dd2fa166
5 changed files with 27 additions and 17 deletions
+6
View File
@@ -58,6 +58,12 @@ function (angular, app, _) {
$scope.row.panels.push(panel);
};
$scope.remove_panel_from_row = function(row, panel) {
if (confirm('Are you sure you want to remove this ' + panel.type + ' panel?')) {
row.panels = _.without(row.panels,panel);
}
};
/** @scratch /panels/0
* [[panels]]
* = Panels