From 62a9ff05b9cd569b44c90ec41592cd807182e171 Mon Sep 17 00:00:00 2001 From: Kevin Giszewski Date: Tue, 29 Apr 2014 14:35:48 -0400 Subject: [PATCH] Hide the `Add` button when multiple fieldsets enabled --- app/controllers/controller.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/controller.js b/app/controllers/controller.js index e0f1939..606a319 100644 --- a/app/controllers/controller.js +++ b/app/controllers/controller.js @@ -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)