Skip to content

Commit

Permalink
Merge pull request #57 from Delo-Design/dev
Browse files Browse the repository at this point in the history
2.7.1
  • Loading branch information
progreccor authored Dec 11, 2020
2 parents 59ee38f + 2ae0afc commit ae7ff85
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
23 changes: 15 additions & 8 deletions media/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ RadicalFormClass = function () {
*
* @type {array}
*/
this.danger_classes = RadicalForm.DangerClass.split(" ");
this.danger_classes = RadicalForm.DangerClass.trim().split(/\s+/);
RadicalForm.ErrorFile = RadicalForm.ErrorFile.trim().split(/\s+/);

/**
* Init for DOM element
Expand Down Expand Up @@ -141,13 +142,19 @@ RadicalFormClass = function () {
if (this.dataset.rfCall !== undefined) {
var rfCall = String(this.dataset.rfCall);
if (rfCall[0] === "0") {
try {
var returnOfpreCall = rfCall_0(this, needReturn);
if ( (returnOfpreCall !== undefined) && (returnOfpreCall === false) ) {
needReturn = true;
}
} catch (e) {
console.error('Radical Form JS Code: ', e);
if (typeof (rfCall_0) === "function") {
try {
var returnOfpreCall = rfCall_0(this, needReturn);
if ((returnOfpreCall !== undefined) && (returnOfpreCall === false)) {
needReturn = true;
}
} catch (e) {
console.error('Radical Form JS Code: ', e);
}
}
else
{
console.error("Function rfCall_0 doesn't set at RadicalForm plugin settings");
}
}
}
Expand Down
Loading

0 comments on commit ae7ff85

Please sign in to comment.