Commit bdf9b938 authored by Tino Goratsch's avatar Tino Goratsch

fixed a bug within the AJAX form settings merge logic

parent 9a71ec1c
Pipeline #18912993 failed with stages
in 7 minutes and 24 seconds
......@@ -57,12 +57,11 @@
},
mergeSettings: function () {
var data = $(this.element).data();
for (var key in data) {
if (data.hasOwnProperty(key)) {
var keyStripped = this.lowerCaseFirstLetter(key.replace('ajaxForm', ''));
if (keyStripped.length > 0 && this.settings[keyStripped]) {
if (keyStripped.length > 0 && typeof this.settings[keyStripped] !== "undefined") {
this.settings[keyStripped] = data[key];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment