Skip to content

Commit

Permalink
0.5.4
Browse files Browse the repository at this point in the history
and semantic was updated too looks like
  • Loading branch information
ebshimizu committed Mar 30, 2018
1 parent 85d2d52 commit 0efcd33
Show file tree
Hide file tree
Showing 49 changed files with 5,125 additions and 4,548 deletions.
2 changes: 1 addition & 1 deletion assets/semantic/src/definitions/behaviors/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

var
window = (typeof window != 'undefined' && window.Math == Math)
Expand Down
280 changes: 0 additions & 280 deletions assets/semantic/src/definitions/behaviors/colorize.js

This file was deleted.

12 changes: 6 additions & 6 deletions assets/semantic/src/definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -435,16 +435,16 @@ $.fn.form = function(parameters) {
var
ruleName = module.get.ruleName(rule),
ancillary = module.get.ancillaryValue(rule),
prompt = rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
$field = module.get.field(field.identifier),
value = $field.val(),
prompt = $.isFunction(rule.prompt)
? rule.prompt(value)
: rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
requiresValue = (prompt.search('{value}') !== -1),
requiresName = (prompt.search('{name}') !== -1),
$label,
$field,
name
;
if(requiresName || requiresValue) {
$field = module.get.field(field.identifier);
}
if(requiresValue) {
prompt = prompt.replace('{value}', $field.val());
}
Expand Down
Loading

0 comments on commit 0efcd33

Please sign in to comment.