Skip to content

Commit

Permalink
Fix to issue Semantic-Org#3864
Browse files Browse the repository at this point in the history
Allows the validation prompt to also be a function that returns a string, as discussed in [issue Semantic-Org#3864](Semantic-Org#3864)
  • Loading branch information
xDaizu authored Dec 11, 2017
1 parent 42e41c2 commit 2268c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ $.fn.form = function(parameters) {
var
ruleName = module.get.ruleName(rule),
ancillary = module.get.ancillaryValue(rule),
prompt = rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
prompt = (typeof rule.prompt === "function" ? rule.prompt() : rule.prompt) || settings.prompt[ruleName] || settings.text.unspecifiedRule,
requiresValue = (prompt.search('{value}') !== -1),
requiresName = (prompt.search('{name}') !== -1),
$label,
Expand Down

0 comments on commit 2268c8d

Please sign in to comment.