Skip to content

Commit

Permalink
Merge branch 'master' into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Irmscher committed Sep 26, 2017
2 parents e691293 + fbb14be commit 28968f4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Resources/Private/Assets/JavaScript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ window.initAjaxForm = function() {
var presetName = $(ajaxForm).attr('data-preset-name');
var dimension = $(ajaxForm).attr('data-dimension');

var formAjaxUrl = location.protocol + '//' + location.host + '/form/' + ( dimension != '' ? dimension + '/' : '' ) + presetName + '/' + formIdentifier;
var formAjaxUrl = location.protocol + '//' + location.host + '/form/' + ( dimension != '' ? dimension + '/' : 'en/' ) + presetName + '/' + formIdentifier;

$(ajaxForm).on('submit', 'form', function (e) {
$(ajaxForm).off('submit').on('submit', 'form', function (e) {

var formObj = $(this);
var formURL = formObj.attr('action');
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/backend.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Resources/Public/JavaScript/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ window.initAjaxForm = function() {
var presetName = $(ajaxForm).attr('data-preset-name');
var dimension = $(ajaxForm).attr('data-dimension');

var formAjaxUrl = location.protocol + '//' + location.host + '/form/' + ( dimension != '' ? dimension + '/' : '' ) + presetName + '/' + formIdentifier;
var formAjaxUrl = location.protocol + '//' + location.host + '/form/' + ( dimension != '' ? dimension + '/' : 'en/' ) + presetName + '/' + formIdentifier;

$(ajaxForm).on('submit', 'form', function (e) {
$(ajaxForm).off('submit').on('submit', 'form', function (e) {

var formObj = $(this);
var formURL = formObj.attr('action');
Expand Down
4 changes: 2 additions & 2 deletions Resources/Public/JavaScript/main.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 28968f4

Please sign in to comment.