From 71735f3becf0d9dddd5ad9293ca7351595c1eec2 Mon Sep 17 00:00:00 2001 From: David Baldwynn Date: Tue, 10 Nov 2015 22:15:59 -0800 Subject: [PATCH] added ng-disabled to prev and next field buttons --- .../modules/forms/directives/submit-form.client.directive.js | 2 +- .../views/directiveViews/form/submit-form.client.view.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/modules/forms/directives/submit-form.client.directive.js b/public/modules/forms/directives/submit-form.client.directive.js index 08af66fb..adec834f 100644 --- a/public/modules/forms/directives/submit-form.client.directive.js +++ b/public/modules/forms/directives/submit-form.client.directive.js @@ -29,7 +29,7 @@ angular.module('forms').directive('submitFormDirective', ['$http', '$timeout', ' }; $scope.nextField = function(){ - if($scope.selected.index < $scope.myform.form_fields.length){ + if($scope.selected.index < $scope.myform.form_fields.length-1){ $scope.selected.index++; $scope.selected._id = $scope.myform.form_fields[$scope.selected.index]._id; } diff --git a/public/modules/forms/views/directiveViews/form/submit-form.client.view.html b/public/modules/forms/views/directiveViews/form/submit-form.client.view.html index a00993d6..27f86e2f 100755 --- a/public/modules/forms/views/directiveViews/form/submit-form.client.view.html +++ b/public/modules/forms/views/directiveViews/form/submit-form.client.view.html @@ -67,10 +67,10 @@ Edit this NodeForm
-
\/
+
-
/\
+