From 2a605d46a787796ece8f518392b33a66a56d732d Mon Sep 17 00:00:00 2001 From: David Baldwynn Date: Wed, 2 Aug 2017 16:31:14 -0400 Subject: [PATCH] fixed next field button not working bug --- public/dist/form_populate_template_cache.js | 2 +- .../forms/base/directives/field.client.directive.js | 2 +- .../forms/base/views/directiveViews/field/textfield.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/dist/form_populate_template_cache.js b/public/dist/form_populate_template_cache.js index 0877f063..d16e6af2 100644 --- a/public/dist/form_populate_template_cache.js +++ b/public/dist/form_populate_template_cache.js @@ -32,7 +32,7 @@ angular.module('TellForm-Form.form_templates', []).run(['$templateCache', functi "

{{index+1}} {{field.title}} {{ 'OPTIONAL' | translate }}

{{ 'NEWLINE' | translate }}

{{field.description}}

Press SHIFT+ENTER to add a newline
{{ 'ENTER' | translate }}
"); $templateCache.put("form_modules/forms/base/views/directiveViews/field/textfield.html", - "

{{index+1}} {{field.title}} ({{ 'OPTIONAL' | translate }})

{{field.description}}

{{ 'ENTER' | translate }}
"); + "

{{index+1}} {{field.title}} ({{ 'OPTIONAL' | translate }})

{{field.description}}

{{ 'ENTER' | translate }}
"); $templateCache.put("form_modules/forms/base/views/directiveViews/field/yes_no.html", "

{{index+1}} {{field.title}} {{ 'OPTIONAL' | translate }}

{{field.description}}


"); $templateCache.put("form_modules/forms/base/views/directiveViews/form/submit-form.client.view.html", diff --git a/public/form_modules/forms/base/directives/field.client.directive.js b/public/form_modules/forms/base/directives/field.client.directive.js index 73fd76d5..68b2fe0c 100644 --- a/public/form_modules/forms/base/directives/field.client.directive.js +++ b/public/form_modules/forms/base/directives/field.client.directive.js @@ -64,7 +64,7 @@ angular.module('view-form').directive('fieldDirective', ['$http', '$compile', '$ $rootScope.nextField(); } }; - + scope.nextField = $rootScope.nextField; scope.setActiveField = $rootScope.setActiveField; //Set format only if field is a date diff --git a/public/form_modules/forms/base/views/directiveViews/field/textfield.html b/public/form_modules/forms/base/views/directiveViews/field/textfield.html index 4aa6e569..6cefbc47 100755 --- a/public/form_modules/forms/base/views/directiveViews/field/textfield.html +++ b/public/form_modules/forms/base/views/directiveViews/field/textfield.html @@ -49,7 +49,7 @@