aaand the controller changes

This commit is contained in:
Mads Rasmussen
2015-11-12 09:55:45 +01:00
parent a4bf118f6d
commit 3ee3c3b46c

View File

@@ -9,6 +9,7 @@ angular.module("umbraco")
$scope.currentControl = null;
$scope.openRTEToolbarId = null;
$scope.hasSettings = false;
$scope.showRowConfigurations = false;
// *********************************************
// Sortable options
@@ -277,6 +278,9 @@ angular.module("umbraco")
if (row) {
section.rows.push(row);
}
$scope.showRowConfigurations = false;
};
$scope.removeRow = function (section, $index) {
@@ -287,6 +291,10 @@ angular.module("umbraco")
//$scope.initContent();
}
if(section.rows.length === 0) {
$scope.showRowConfigurations = true;
}
};
$scope.editGridItemSettings = function (gridItem, itemType) {
@@ -438,6 +446,10 @@ angular.module("umbraco")
scopedObject.deletePrompt = true;
};
$scope.toggleAddRow = function() {
$scope.showRowConfigurations = !$scope.showRowConfigurations;
};
// *********************************************
// INITIALISATION