From 6ea44c271d296a63ac99e2a23870285bc33bb531 Mon Sep 17 00:00:00 2001 From: Kevin Giszewski Date: Wed, 30 Apr 2014 10:00:15 -0400 Subject: [PATCH] Use a count on the add button rather than checking flag --- app/controllers/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/controller.js b/app/controllers/controller.js index 8358be1..3f31ac3 100644 --- a/app/controllers/controller.js +++ b/app/controllers/controller.js @@ -108,7 +108,7 @@ $scope.showAddButton = function () { return $scope.model.config.startWithAddButton && countVisible() === 0 - && !$scope.model.config.enableMultipleFieldsets; + && $scope.model.config.fieldsets.length == 1; } //helper, ini the render model from the server (model.value)