diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.controller.js
index 7f7b817b8a..09fa263354 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.controller.js
@@ -1,8 +1,8 @@
function RowConfigController($scope) {
-
- $scope.currentRow = angular.copy($scope.dialogOptions.currentRow);
- $scope.editors = $scope.dialogOptions.editors;
- $scope.columns = $scope.dialogOptions.columns;
+
+ $scope.currentRow = $scope.model.currentRow;
+ $scope.editors = $scope.model.editors;
+ $scope.columns = $scope.model.columns;
$scope.scaleUp = function(section, max, overflow) {
var add = 1;
@@ -88,10 +88,6 @@ function RowConfigController($scope) {
}
}, true);
- $scope.complete = function () {
- angular.extend($scope.dialogOptions.currentRow, $scope.currentRow);
- $scope.close();
- }
}
-angular.module("umbraco").controller("Umbraco.PropertyEditors.GridPrevalueEditor.RowConfigController", RowConfigController);
\ No newline at end of file
+angular.module("umbraco").controller("Umbraco.PropertyEditors.GridPrevalueEditor.RowConfigController", RowConfigController);
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html
index 63e250645f..b1343a960b 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/dialogs/rowconfig.html
@@ -1,102 +1,87 @@
-
-
-
-
\ No newline at end of file
+
+
+
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.prevalues.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.prevalues.controller.js
index a09fd9f6e7..7fb4dad218 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.prevalues.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.prevalues.controller.js
@@ -120,26 +120,38 @@ angular.module("umbraco")
Row
*****************/
- $scope.configureLayout = function(layout){
+ $scope.configureLayout = function(layout) {
- if(layout === undefined){
- layout = {
- name: "",
- areas:[
+ var layoutsCopy = angular.copy($scope.model.value.layouts);
- ]
- };
- $scope.model.value.layouts.push(layout);
- }
+ if(layout === undefined){
+ layout = {
+ name: "",
+ areas:[
+
+ ]
+ };
+ $scope.model.value.layouts.push(layout);
+ }
+
+ $scope.rowConfigOverlay = {};
+ $scope.rowConfigOverlay.view = "views/propertyEditors/grid/dialogs/rowconfig.html";
+ $scope.rowConfigOverlay.currentRow = layout;
+ $scope.rowConfigOverlay.editors = $scope.editors;
+ $scope.rowConfigOverlay.columns = $scope.model.value.columns;
+ $scope.rowConfigOverlay.show = true;
+
+ $scope.rowConfigOverlay.submit = function(model) {
+ $scope.rowConfigOverlay.show = false;
+ $scope.rowConfigOverlay = null;
+ };
+
+ $scope.rowConfigOverlay.close = function(oldModel) {
+ $scope.model.value.layouts = layoutsCopy;
+ $scope.rowConfigOverlay.show = false;
+ $scope.rowConfigOverlay = null;
+ };
- dialogService.open(
- {
- template: "views/propertyEditors/grid/dialogs/rowconfig.html",
- currentRow: layout,
- editors: $scope.editors,
- columns: $scope.model.value.columns
- }
- );
};
//var rowDeletesPending = false;
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.prevalues.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.prevalues.html
index d09d170fa1..92e9b17096 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.prevalues.html
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.prevalues.html
@@ -168,4 +168,11 @@
position="right">
+
+
+