Skip to content

Commit

Permalink
hard-code settings that were removed from config
Browse files Browse the repository at this point in the history
  • Loading branch information
hjelmevold committed Jan 23, 2020
1 parent 5359629 commit 9da092a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ dependencies {
include "com.enonic.xp:lib-auth:${xpVersion}"
include "com.enonic.xp:lib-repo:${xpVersion}"
include "com.enonic.xp:lib-cluster:${xpVersion}"
include "com.enonic.lib:lib-thymeleaf:2.0.0-B1"
include 'com.enonic.lib:lib-http-client:2.0.0-B1'
include 'com.enonic.lib:lib-util:2.0.0-B1'
include "com.enonic.lib:lib-thymeleaf:2.0.0"
include 'com.enonic.lib:lib-http-client:2.0.0'
include 'com.enonic.lib:lib-util:2.0.0'
//include "com.enonic.lib:recaptcha:1.1.1"
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Project settings
#
group = com.enonic.app
version=2.0.1
version=2.0.2
projectName = formbuilder
appName = com.enonic.app.formbuilder
xpVersion=7.1.0
xpVersion=7.0.0
6 changes: 4 additions & 2 deletions src/main/resources/lib/form-builder/mapper/form-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ exports.map = function (formConfig) {
.setSubmitText(_getSubmitText(formConfig))
.setActionUrl(_getActionUrl(formConfig))
.setSubmitMethod(_getSubmitMethod(formConfig))
.setUsingAjax(formConfig.useAjax);
//.setUsingAjax(formConfig.useAjax);
.setUsingAjax(true);

LIST_UTIL.iterateSafely(formConfig.inputs, function(item) {
/*
Expand Down Expand Up @@ -60,7 +61,8 @@ var _getActionUrl = function(formConfig) {
};

var _getSubmitMethod = function(formConfig) {
return (formConfig.submitText) ? formConfig.submitText : "post";
//return (formConfig.submitText) ? formConfig.submitText : "post";
return "post";
};

var _mapInputField = function(inputConfig) {
Expand Down

0 comments on commit 9da092a

Please sign in to comment.