Hide the Add button when multiple fieldsets enabled

This commit is contained in:
Kevin Giszewski
2014-04-29 14:35:48 -04:00
parent ce05dbb845
commit 62a9ff05b9
+3 -2
View File
@@ -41,7 +41,7 @@
cursor: "move",
handle: ".handle",
update: function (ev, ui) {
},
stop: function (ev, ui) {
@@ -106,7 +106,8 @@
//helpers for determining if the add button should be shown
$scope.showAddButton = function () {
return $scope.model.config.startWithAddButton
&& countVisible() === 0;
&& countVisible() === 0
&& !$scope.model.config.enableMultipleFieldsets;
}
//helper, ini the render model from the server (model.value)