Skip to content

Commit

Permalink
Update NPM packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sabgaby committed Jan 14, 2019
1 parent e9e1d6d commit 3bfcfd9
Show file tree
Hide file tree
Showing 118 changed files with 11,254 additions and 9,149 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.

26 changes: 13 additions & 13 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 @@ -358,7 +358,7 @@ $.fn.form = function(parameters) {
module.validate.field( validationRules );
}
}
else if(settings.on == 'blur' || settings.on == 'change') {
else if(settings.on == 'blur') {
if(validationRules) {
module.validate.field( validationRules );
}
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 Expand Up @@ -603,9 +603,9 @@ $.fn.form = function(parameters) {
}
else {
if(isRadio) {
if(values[name] === undefined) {
if(values[name] === undefined || values[name] == false) {
values[name] = (isChecked)
? true
? value || true
: false
;
}
Expand Down Expand Up @@ -1263,10 +1263,10 @@ $.fn.form.settings = {
isExactly : '{name} must be exactly "{ruleValue}"',
not : '{name} cannot be set to "{ruleValue}"',
notExactly : '{name} cannot be set to exactly "{ruleValue}"',
contain : '{name} cannot contain "{ruleValue}"',
containExactly : '{name} cannot contain exactly "{ruleValue}"',
doesntContain : '{name} must contain "{ruleValue}"',
doesntContainExactly : '{name} must contain exactly "{ruleValue}"',
contain : '{name} must contain "{ruleValue}"',
containExactly : '{name} must contain exactly "{ruleValue}"',
doesntContain : '{name} cannot contain "{ruleValue}"',
doesntContainExactly : '{name} cannot contain exactly "{ruleValue}"',
minLength : '{name} must be at least {ruleValue} characters',
length : '{name} must be at least {ruleValue} characters',
exactLength : '{name} must be exactly {ruleValue} characters',
Expand Down
Loading

0 comments on commit 3bfcfd9

Please sign in to comment.