fomantic-ui 2.9.1-beta.24 → 2.9.1-beta.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslint/eqeqeq-rule.js +18 -0
- package/.eslint/index.js +3 -0
- package/.eslintrc.js +1 -2
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +4 -4
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +17 -17
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +18 -17
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +11 -11
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +9 -9
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +103 -91
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +5 -5
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +10 -10
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +77 -60
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +4 -4
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +5 -5
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +39 -31
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +12 -12
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +6 -6
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +16 -16
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +5 -5
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +13 -13
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +4 -4
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +50 -37
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +5 -5
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +8 -8
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +17 -17
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +4 -4
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +8 -8
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +12 -12
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +50 -50
- package/dist/semantic.js +462 -411
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/package.json +1 -1
- package/src/definitions/behaviors/api.js +16 -16
- package/src/definitions/behaviors/form.js +76 -59
- package/src/definitions/behaviors/state.js +4 -4
- package/src/definitions/behaviors/visibility.js +11 -11
- package/src/definitions/globals/site.js +3 -3
- package/src/definitions/modules/accordion.js +3 -3
- package/src/definitions/modules/calendar.js +17 -16
- package/src/definitions/modules/checkbox.js +10 -10
- package/src/definitions/modules/dimmer.js +8 -8
- package/src/definitions/modules/dropdown.js +102 -90
- package/src/definitions/modules/embed.js +4 -4
- package/src/definitions/modules/flyout.js +9 -9
- package/src/definitions/modules/modal.js +3 -3
- package/src/definitions/modules/nag.js +4 -4
- package/src/definitions/modules/popup.js +38 -30
- package/src/definitions/modules/progress.js +11 -11
- package/src/definitions/modules/rating.js +5 -5
- package/src/definitions/modules/search.js +15 -15
- package/src/definitions/modules/shape.js +4 -4
- package/src/definitions/modules/sidebar.js +12 -12
- package/src/definitions/modules/slider.js +49 -36
- package/src/definitions/modules/sticky.js +7 -7
- package/src/definitions/modules/tab.js +16 -16
- package/src/definitions/modules/toast.js +3 -3
- package/src/definitions/modules/transition.js +7 -7
- package/tasks/admin/components/init.js +1 -1
- package/tasks/admin/components/update.js +1 -1
- package/tasks/admin/distributions/create.js +4 -5
- package/tasks/admin/distributions/init.js +1 -1
- package/tasks/admin/distributions/update.js +1 -1
- package/tasks/config/project/config.js +2 -2
- package/tasks/config/project/install.js +8 -8
- package/tasks/config/project/release.js +1 -1
- package/tasks/config/tasks.js +2 -2
- package/tasks/docs/metadata.js +1 -1
- package/tasks/install.js +2 -2
- package/test/modules/module.spec.js +1 -1
package/dist/semantic.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* # Fomantic UI - 2.9.1-beta.
|
2
|
+
* # Fomantic UI - 2.9.1-beta.25+bbe4e58
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
4
4
|
* https://fomantic-ui.com/
|
5
5
|
*
|
@@ -9,7 +9,7 @@
|
|
9
9
|
*
|
10
10
|
*/
|
11
11
|
/*!
|
12
|
-
* # Fomantic-UI 2.9.1-beta.
|
12
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Site
|
13
13
|
* https://github.com/fomantic/Fomantic-UI/
|
14
14
|
*
|
15
15
|
*
|
@@ -371,17 +371,17 @@
|
|
371
371
|
query = query.split(/[ .]/);
|
372
372
|
maxDepth = query.length - 1;
|
373
373
|
$.each(query, function (depth, value) {
|
374
|
-
var camelCaseValue = depth
|
374
|
+
var camelCaseValue = depth !== maxDepth
|
375
375
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
376
376
|
: query
|
377
377
|
;
|
378
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
378
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
379
379
|
object = object[camelCaseValue];
|
380
380
|
} else if (object[camelCaseValue] !== undefined) {
|
381
381
|
found = object[camelCaseValue];
|
382
382
|
|
383
383
|
return false;
|
384
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
384
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
385
385
|
object = object[value];
|
386
386
|
} else if (object[value] !== undefined) {
|
387
387
|
found = object[value];
|
@@ -490,7 +490,7 @@
|
|
490
490
|
})(jQuery, window, document);
|
491
491
|
|
492
492
|
/*!
|
493
|
-
* # Fomantic-UI 2.9.1-beta.
|
493
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Form Validation
|
494
494
|
* https://github.com/fomantic/Fomantic-UI/
|
495
495
|
*
|
496
496
|
*
|
@@ -836,14 +836,14 @@
|
|
836
836
|
},
|
837
837
|
fieldDirty: function ($el) {
|
838
838
|
var initialValue = $el.data(metadata.defaultValue);
|
839
|
-
// Explicitly check for null
|
840
|
-
if (initialValue
|
839
|
+
// Explicitly check for undefined/null here as value may be `false`, so ($el.data(dataInitialValue) || '') would not work
|
840
|
+
if (initialValue === undefined || initialValue === null) {
|
841
841
|
initialValue = '';
|
842
842
|
} else if (Array.isArray(initialValue)) {
|
843
843
|
initialValue = initialValue.toString();
|
844
844
|
}
|
845
845
|
var currentValue = $el.val();
|
846
|
-
if (currentValue
|
846
|
+
if (currentValue === undefined || currentValue === null) {
|
847
847
|
currentValue = '';
|
848
848
|
} else if (Array.isArray(currentValue)) {
|
849
849
|
// multiple select values are returned as arrays which are never equal, so do string conversion first
|
@@ -894,13 +894,13 @@
|
|
894
894
|
escape: 27,
|
895
895
|
}
|
896
896
|
;
|
897
|
-
if (key
|
897
|
+
if (key === keyCode.escape) {
|
898
898
|
module.verbose('Escape key pressed blurring field');
|
899
899
|
$field[0]
|
900
900
|
.blur()
|
901
901
|
;
|
902
902
|
}
|
903
|
-
if (!event.ctrlKey && key
|
903
|
+
if (!event.ctrlKey && key === keyCode.enter && isInput && !isInDropdown && !isCheckbox) {
|
904
904
|
if (!keyHeldDown) {
|
905
905
|
$field.one('keyup' + eventNamespace, module.event.field.keyup);
|
906
906
|
module.submit();
|
@@ -919,7 +919,7 @@
|
|
919
919
|
$fieldGroup = $field.closest($group),
|
920
920
|
validationRules = module.get.validation($field)
|
921
921
|
;
|
922
|
-
if (validationRules && (settings.on
|
922
|
+
if (validationRules && (settings.on === 'blur' || ($fieldGroup.hasClass(className.error) && settings.revalidate))) {
|
923
923
|
module.debug('Revalidating field', $field, validationRules);
|
924
924
|
module.validate.field(validationRules);
|
925
925
|
if (!settings.inline) {
|
@@ -933,7 +933,7 @@
|
|
933
933
|
$fieldGroup = $field.closest($group),
|
934
934
|
validationRules = module.get.validation($field)
|
935
935
|
;
|
936
|
-
if (validationRules && (settings.on
|
936
|
+
if (validationRules && (settings.on === 'change' || ($fieldGroup.hasClass(className.error) && settings.revalidate))) {
|
937
937
|
clearTimeout(module.timer);
|
938
938
|
module.timer = setTimeout(function () {
|
939
939
|
module.debug('Revalidating field', $field, validationRules);
|
@@ -979,7 +979,7 @@
|
|
979
979
|
return rule.type;
|
980
980
|
},
|
981
981
|
changeEvent: function (type, $input) {
|
982
|
-
if (type
|
982
|
+
if (type === 'checkbox' || type === 'radio' || type === 'hidden' || $input.is('select')) {
|
983
983
|
return 'change';
|
984
984
|
}
|
985
985
|
|
@@ -1048,7 +1048,7 @@
|
|
1048
1048
|
}
|
1049
1049
|
if (requiresName) {
|
1050
1050
|
$label = $field.closest(selector.group).find('label').eq(0);
|
1051
|
-
name = $label.length
|
1051
|
+
name = $label.length === 1
|
1052
1052
|
? $label.text()
|
1053
1053
|
: $field.prop('placeholder') || settings.text.unspecifiedField;
|
1054
1054
|
prompt = prompt.replace(/{name}/g, name);
|
@@ -1221,42 +1221,53 @@
|
|
1221
1221
|
var date = $calendar.calendar('get date');
|
1222
1222
|
|
1223
1223
|
if (date !== null) {
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
values[name] = $calendar.calendar('get input date');
|
1228
|
-
} else if (settings.dateHandling == 'formatter') {
|
1229
|
-
var type = $calendar.calendar('setting', 'type');
|
1224
|
+
switch (settings.dateHandling) {
|
1225
|
+
case 'date': {
|
1226
|
+
values[name] = date;
|
1230
1227
|
|
1231
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
break;
|
1236
|
-
|
1237
|
-
case 'datetime':
|
1238
|
-
values[name] = settings.formatter.datetime(date);
|
1239
|
-
|
1240
|
-
break;
|
1241
|
-
|
1242
|
-
case 'time':
|
1243
|
-
values[name] = settings.formatter.time(date);
|
1244
|
-
|
1245
|
-
break;
|
1246
|
-
|
1247
|
-
case 'month':
|
1248
|
-
values[name] = settings.formatter.month(date);
|
1249
|
-
|
1250
|
-
break;
|
1251
|
-
|
1252
|
-
case 'year':
|
1253
|
-
values[name] = settings.formatter.year(date);
|
1228
|
+
break;
|
1229
|
+
}
|
1230
|
+
case 'input': {
|
1231
|
+
values[name] = $calendar.calendar('get input date');
|
1254
1232
|
|
1255
|
-
|
1233
|
+
break;
|
1234
|
+
}
|
1235
|
+
case 'formatter': {
|
1236
|
+
var type = $calendar.calendar('setting', 'type');
|
1237
|
+
|
1238
|
+
switch (type) {
|
1239
|
+
case 'date': {
|
1240
|
+
values[name] = settings.formatter.date(date);
|
1241
|
+
|
1242
|
+
break;
|
1243
|
+
}
|
1244
|
+
case 'datetime': {
|
1245
|
+
values[name] = settings.formatter.datetime(date);
|
1246
|
+
|
1247
|
+
break;
|
1248
|
+
}
|
1249
|
+
case 'time': {
|
1250
|
+
values[name] = settings.formatter.time(date);
|
1251
|
+
|
1252
|
+
break;
|
1253
|
+
}
|
1254
|
+
case 'month': {
|
1255
|
+
values[name] = settings.formatter.month(date);
|
1256
|
+
|
1257
|
+
break;
|
1258
|
+
}
|
1259
|
+
case 'year': {
|
1260
|
+
values[name] = settings.formatter.year(date);
|
1261
|
+
|
1262
|
+
break;
|
1263
|
+
}
|
1264
|
+
default: {
|
1265
|
+
module.debug('Wrong calendar mode', $calendar, type);
|
1266
|
+
values[name] = '';
|
1267
|
+
}
|
1268
|
+
}
|
1256
1269
|
|
1257
|
-
|
1258
|
-
module.debug('Wrong calendar mode', $calendar, type);
|
1259
|
-
values[name] = '';
|
1270
|
+
break;
|
1260
1271
|
}
|
1261
1272
|
}
|
1262
1273
|
} else {
|
@@ -1345,7 +1356,7 @@
|
|
1345
1356
|
// For each new rule, check if there's not already one with the same type
|
1346
1357
|
$.each(newValidation.rules, function (_index, rule) {
|
1347
1358
|
if ($.grep(validation[name].rules, function (item) {
|
1348
|
-
return item.type
|
1359
|
+
return item.type === rule.type;
|
1349
1360
|
}).length === 0) {
|
1350
1361
|
validation[name].rules.push(rule);
|
1351
1362
|
}
|
@@ -1630,7 +1641,7 @@
|
|
1630
1641
|
validation = module.get.validation($el),
|
1631
1642
|
hasEmptyRule = validation
|
1632
1643
|
? $.grep(validation.rules, function (rule) {
|
1633
|
-
return rule.type
|
1644
|
+
return rule.type === 'empty';
|
1634
1645
|
}) !== 0
|
1635
1646
|
: false,
|
1636
1647
|
identifier = validation.identifier || $el.attr('id') || $el.attr('name') || $el.data(metadata.validate)
|
@@ -1649,7 +1660,7 @@
|
|
1649
1660
|
optional: function (identifier, bool) {
|
1650
1661
|
bool = bool !== false;
|
1651
1662
|
$.each(validation, function (fieldName, field) {
|
1652
|
-
if (identifier
|
1663
|
+
if (identifier === fieldName || identifier === field.identifier) {
|
1653
1664
|
field.optional = bool;
|
1654
1665
|
}
|
1655
1666
|
});
|
@@ -1933,16 +1944,16 @@
|
|
1933
1944
|
query = query.split(/[ .]/);
|
1934
1945
|
maxDepth = query.length - 1;
|
1935
1946
|
$.each(query, function (depth, value) {
|
1936
|
-
var camelCaseValue = depth
|
1947
|
+
var camelCaseValue = depth !== maxDepth
|
1937
1948
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
1938
1949
|
: query;
|
1939
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
1950
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
1940
1951
|
object = object[camelCaseValue];
|
1941
1952
|
} else if (object[camelCaseValue] !== undefined) {
|
1942
1953
|
found = object[camelCaseValue];
|
1943
1954
|
|
1944
1955
|
return false;
|
1945
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
1956
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
1946
1957
|
object = object[value];
|
1947
1958
|
} else if (object[value] !== undefined) {
|
1948
1959
|
found = object[value];
|
@@ -2239,7 +2250,7 @@
|
|
2239
2250
|
if (!range || ['', '..'].indexOf(range) !== -1) {
|
2240
2251
|
|
2241
2252
|
// do nothing
|
2242
|
-
} else if (range.indexOf('..')
|
2253
|
+
} else if (range.indexOf('..') === -1) {
|
2243
2254
|
if (regExp.test(range)) {
|
2244
2255
|
min = range - 0;
|
2245
2256
|
max = min;
|
@@ -2347,7 +2358,7 @@
|
|
2347
2358
|
// is exactly length
|
2348
2359
|
exactLength: function (value, requiredLength) {
|
2349
2360
|
return value !== undefined
|
2350
|
-
? value.length
|
2361
|
+
? value.length === Number(requiredLength)
|
2351
2362
|
: false;
|
2352
2363
|
},
|
2353
2364
|
|
@@ -2385,7 +2396,7 @@
|
|
2385
2396
|
}
|
2386
2397
|
|
2387
2398
|
return matchingValue !== undefined
|
2388
|
-
? value.toString()
|
2399
|
+
? value.toString() === matchingValue.toString()
|
2389
2400
|
: false;
|
2390
2401
|
},
|
2391
2402
|
|
@@ -2530,10 +2541,12 @@
|
|
2530
2541
|
},
|
2531
2542
|
|
2532
2543
|
minCount: function (value, minCount) {
|
2533
|
-
|
2544
|
+
minCount = Number(minCount);
|
2545
|
+
|
2546
|
+
if (minCount === 0) {
|
2534
2547
|
return true;
|
2535
2548
|
}
|
2536
|
-
if (minCount
|
2549
|
+
if (minCount === 1) {
|
2537
2550
|
return value !== '';
|
2538
2551
|
}
|
2539
2552
|
|
@@ -2541,21 +2554,25 @@
|
|
2541
2554
|
},
|
2542
2555
|
|
2543
2556
|
exactCount: function (value, exactCount) {
|
2544
|
-
|
2557
|
+
exactCount = Number(exactCount);
|
2558
|
+
|
2559
|
+
if (exactCount === 0) {
|
2545
2560
|
return value === '';
|
2546
2561
|
}
|
2547
|
-
if (exactCount
|
2562
|
+
if (exactCount === 1) {
|
2548
2563
|
return value !== '' && value.search(',') === -1;
|
2549
2564
|
}
|
2550
2565
|
|
2551
|
-
return value.split(',').length
|
2566
|
+
return value.split(',').length === exactCount;
|
2552
2567
|
},
|
2553
2568
|
|
2554
2569
|
maxCount: function (value, maxCount) {
|
2555
|
-
|
2570
|
+
maxCount = Number(maxCount);
|
2571
|
+
|
2572
|
+
if (maxCount === 0) {
|
2556
2573
|
return false;
|
2557
2574
|
}
|
2558
|
-
if (maxCount
|
2575
|
+
if (maxCount === 1) {
|
2559
2576
|
return value.search(',') === -1;
|
2560
2577
|
}
|
2561
2578
|
|
@@ -2567,7 +2584,7 @@
|
|
2567
2584
|
})(jQuery, window, document);
|
2568
2585
|
|
2569
2586
|
/*!
|
2570
|
-
* # Fomantic-UI 2.9.1-beta.
|
2587
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Accordion
|
2571
2588
|
* https://github.com/fomantic/Fomantic-UI/
|
2572
2589
|
*
|
2573
2590
|
*
|
@@ -3050,16 +3067,16 @@
|
|
3050
3067
|
query = query.split(/[ .]/);
|
3051
3068
|
maxDepth = query.length - 1;
|
3052
3069
|
$.each(query, function (depth, value) {
|
3053
|
-
var camelCaseValue = depth
|
3070
|
+
var camelCaseValue = depth !== maxDepth
|
3054
3071
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
3055
3072
|
: query;
|
3056
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
3073
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
3057
3074
|
object = object[camelCaseValue];
|
3058
3075
|
} else if (object[camelCaseValue] !== undefined) {
|
3059
3076
|
found = object[camelCaseValue];
|
3060
3077
|
|
3061
3078
|
return false;
|
3062
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
3079
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
3063
3080
|
object = object[value];
|
3064
3081
|
} else if (object[value] !== undefined) {
|
3065
3082
|
found = object[value];
|
@@ -3165,7 +3182,7 @@
|
|
3165
3182
|
})(jQuery, window, document);
|
3166
3183
|
|
3167
3184
|
/*!
|
3168
|
-
* # Fomantic-UI 2.9.1-beta.
|
3185
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Calendar
|
3169
3186
|
* https://github.com/fomantic/Fomantic-UI/
|
3170
3187
|
*
|
3171
3188
|
*
|
@@ -3828,7 +3845,7 @@
|
|
3828
3845
|
? -1
|
3829
3846
|
: (keyCode === 38
|
3830
3847
|
? -bigIncrement
|
3831
|
-
: (keyCode
|
3848
|
+
: (keyCode === 39 ? 1 : bigIncrement)); // eslint-disable-line unicorn/no-nested-ternary
|
3832
3849
|
increment *= mode === 'minute' ? settings.minTimeGap : 1;
|
3833
3850
|
var focusDate = module.get.focusDate() || module.get.date() || new Date();
|
3834
3851
|
var year = focusDate.getFullYear() + (mode === 'year' ? increment : 0);
|
@@ -3861,11 +3878,12 @@
|
|
3861
3878
|
break;
|
3862
3879
|
}
|
3863
3880
|
// escape key
|
3864
|
-
case 27:
|
3881
|
+
case 27: {
|
3865
3882
|
module.popup('hide');
|
3866
3883
|
event.stopPropagation();
|
3867
3884
|
|
3868
3885
|
break;
|
3886
|
+
}
|
3869
3887
|
}
|
3870
3888
|
}
|
3871
3889
|
|
@@ -4304,19 +4322,19 @@
|
|
4304
4322
|
} else if (d !== null && typeof d === 'object') {
|
4305
4323
|
if (d[metadata.year]) {
|
4306
4324
|
if (typeof d[metadata.year] === 'number') {
|
4307
|
-
blocked = date.getFullYear()
|
4325
|
+
blocked = date.getFullYear() === d[metadata.year];
|
4308
4326
|
} else if (Array.isArray(d[metadata.year])) {
|
4309
4327
|
blocked = d[metadata.year].indexOf(date.getFullYear()) > -1;
|
4310
4328
|
}
|
4311
4329
|
} else if (d[metadata.month]) {
|
4312
4330
|
if (typeof d[metadata.month] === 'number') {
|
4313
|
-
blocked = date.getMonth()
|
4331
|
+
blocked = date.getMonth() === d[metadata.month];
|
4314
4332
|
} else if (Array.isArray(d[metadata.month])) {
|
4315
4333
|
blocked = d[metadata.month].indexOf(date.getMonth()) > -1;
|
4316
4334
|
} else if (d[metadata.month] instanceof Date) {
|
4317
4335
|
var sdate = module.helper.sanitiseDate(d[metadata.month]);
|
4318
4336
|
|
4319
|
-
blocked = (date.getMonth()
|
4337
|
+
blocked = (date.getMonth() === sdate.getMonth()) && (date.getFullYear() === sdate.getFullYear());
|
4320
4338
|
}
|
4321
4339
|
} else if (d[metadata.date] && mode === 'day') {
|
4322
4340
|
if (d[metadata.date] instanceof Date) {
|
@@ -4353,7 +4371,7 @@
|
|
4353
4371
|
|
4354
4372
|
if (d[metadata.days]) {
|
4355
4373
|
if (typeof d[metadata.days] === 'number') {
|
4356
|
-
blocked = date.getDay()
|
4374
|
+
blocked = date.getDay() === d[metadata.days];
|
4357
4375
|
} else if (Array.isArray(d[metadata.days])) {
|
4358
4376
|
blocked = d[metadata.days].indexOf(date.getDay()) > -1;
|
4359
4377
|
}
|
@@ -4361,7 +4379,7 @@
|
|
4361
4379
|
|
4362
4380
|
if (d[metadata.hours]) {
|
4363
4381
|
if (typeof d[metadata.hours] === 'number') {
|
4364
|
-
blocked = blocked && date.getHours()
|
4382
|
+
blocked = blocked && date.getHours() === d[metadata.hours];
|
4365
4383
|
} else if (Array.isArray(d[metadata.hours])) {
|
4366
4384
|
blocked = blocked && d[metadata.hours].indexOf(date.getHours()) > -1;
|
4367
4385
|
}
|
@@ -4407,7 +4425,7 @@
|
|
4407
4425
|
}
|
4408
4426
|
if (d !== null && typeof d === 'object') {
|
4409
4427
|
if (d[metadata.year]) {
|
4410
|
-
if (typeof d[metadata.year] === 'number' && date.getFullYear()
|
4428
|
+
if (typeof d[metadata.year] === 'number' && date.getFullYear() === d[metadata.year]) {
|
4411
4429
|
return d;
|
4412
4430
|
}
|
4413
4431
|
if (Array.isArray(d[metadata.year])) {
|
@@ -4416,7 +4434,7 @@
|
|
4416
4434
|
}
|
4417
4435
|
}
|
4418
4436
|
} else if (d[metadata.month]) {
|
4419
|
-
if (typeof d[metadata.month] === 'number' && date.getMonth()
|
4437
|
+
if (typeof d[metadata.month] === 'number' && date.getMonth() === d[metadata.month]) {
|
4420
4438
|
return d;
|
4421
4439
|
}
|
4422
4440
|
if (Array.isArray(d[metadata.month])) {
|
@@ -4425,7 +4443,7 @@
|
|
4425
4443
|
}
|
4426
4444
|
} else if (d[metadata.month] instanceof Date) {
|
4427
4445
|
var sdate = module.helper.sanitiseDate(d[metadata.month]);
|
4428
|
-
if ((date.getMonth()
|
4446
|
+
if ((date.getMonth() === sdate.getMonth()) && (date.getFullYear() === sdate.getFullYear())) {
|
4429
4447
|
return d;
|
4430
4448
|
}
|
4431
4449
|
}
|
@@ -4452,7 +4470,7 @@
|
|
4452
4470
|
var d;
|
4453
4471
|
var hourCheck = function (date, d) {
|
4454
4472
|
if (d[metadata.hours]) {
|
4455
|
-
if (typeof d[metadata.hours] === 'number' && date.getHours()
|
4473
|
+
if (typeof d[metadata.hours] === 'number' && date.getHours() === d[metadata.hours]) {
|
4456
4474
|
return d;
|
4457
4475
|
}
|
4458
4476
|
if (Array.isArray(d[metadata.hours])) {
|
@@ -4464,12 +4482,12 @@
|
|
4464
4482
|
};
|
4465
4483
|
for (var i = 0; i < hours.length; i++) {
|
4466
4484
|
d = hours[i];
|
4467
|
-
if (typeof d === 'number' && date.getHours()
|
4485
|
+
if (typeof d === 'number' && date.getHours() === d) {
|
4468
4486
|
return null;
|
4469
4487
|
}
|
4470
4488
|
if (d !== null && typeof d === 'object') {
|
4471
4489
|
if (d[metadata.days] && hourCheck(date, d)) {
|
4472
|
-
if (typeof d[metadata.days] === 'number' && date.getDay()
|
4490
|
+
if (typeof d[metadata.days] === 'number' && date.getDay() === d[metadata.days]) {
|
4473
4491
|
return d;
|
4474
4492
|
}
|
4475
4493
|
if (Array.isArray(d[metadata.days])) {
|
@@ -4689,17 +4707,17 @@
|
|
4689
4707
|
query = query.split(/[ .]/);
|
4690
4708
|
maxDepth = query.length - 1;
|
4691
4709
|
$.each(query, function (depth, value) {
|
4692
|
-
var camelCaseValue = depth
|
4710
|
+
var camelCaseValue = depth !== maxDepth
|
4693
4711
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
4694
4712
|
: query
|
4695
4713
|
;
|
4696
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
4714
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
4697
4715
|
object = object[camelCaseValue];
|
4698
4716
|
} else if (object[camelCaseValue] !== undefined) {
|
4699
4717
|
found = object[camelCaseValue];
|
4700
4718
|
|
4701
4719
|
return false;
|
4702
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
4720
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
4703
4721
|
object = object[value];
|
4704
4722
|
} else if (object[value] !== undefined) {
|
4705
4723
|
found = object[value];
|
@@ -5180,7 +5198,7 @@
|
|
5180
5198
|
})(jQuery, window, document);
|
5181
5199
|
|
5182
5200
|
/*!
|
5183
|
-
* # Fomantic-UI 2.9.1-beta.
|
5201
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Checkbox
|
5184
5202
|
* https://github.com/fomantic/Fomantic-UI/
|
5185
5203
|
*
|
5186
5204
|
*
|
@@ -5398,9 +5416,9 @@
|
|
5398
5416
|
checkIndex = false
|
5399
5417
|
;
|
5400
5418
|
|
5401
|
-
if (key
|
5419
|
+
if (key === keyCode.left || key === keyCode.up) {
|
5402
5420
|
checkIndex = (rIndex === 0 ? rLen : rIndex) - 1;
|
5403
|
-
} else if (key
|
5421
|
+
} else if (key === keyCode.right || key === keyCode.down) {
|
5404
5422
|
checkIndex = rIndex === rLen - 1 ? 0 : rIndex + 1;
|
5405
5423
|
}
|
5406
5424
|
|
@@ -5418,21 +5436,21 @@
|
|
5418
5436
|
}
|
5419
5437
|
|
5420
5438
|
shortcutPressed = false;
|
5421
|
-
if (key
|
5439
|
+
if (key === keyCode.escape) {
|
5422
5440
|
module.verbose('Escape key pressed blurring field');
|
5423
5441
|
$input.trigger('blur');
|
5424
5442
|
shortcutPressed = true;
|
5425
5443
|
event.stopPropagation();
|
5426
5444
|
} else if (!event.ctrlKey && module.can.change()) {
|
5427
|
-
if (key
|
5445
|
+
if (key === keyCode.space || (key === keyCode.enter && settings.enableEnterKey)) {
|
5428
5446
|
module.verbose('Enter/space key pressed, toggling checkbox');
|
5429
5447
|
module.toggle();
|
5430
5448
|
shortcutPressed = true;
|
5431
5449
|
} else if ($module.is('.toggle, .slider') && !module.is.radio()) {
|
5432
|
-
if (key
|
5450
|
+
if (key === keyCode.left && module.is.checked()) {
|
5433
5451
|
module.uncheck();
|
5434
5452
|
shortcutPressed = true;
|
5435
|
-
} else if (key
|
5453
|
+
} else if (key === keyCode.right && module.is.unchecked()) {
|
5436
5454
|
module.check();
|
5437
5455
|
shortcutPressed = true;
|
5438
5456
|
}
|
@@ -5551,7 +5569,7 @@
|
|
5551
5569
|
return initialLoad;
|
5552
5570
|
},
|
5553
5571
|
radio: function () {
|
5554
|
-
return $input.hasClass(className.radio) || $input.attr('type')
|
5572
|
+
return $input.hasClass(className.radio) || $input.attr('type') === 'radio';
|
5555
5573
|
},
|
5556
5574
|
indeterminate: function () {
|
5557
5575
|
return $input.prop('indeterminate') !== undefined && $input.prop('indeterminate');
|
@@ -5948,17 +5966,17 @@
|
|
5948
5966
|
query = query.split(/[ .]/);
|
5949
5967
|
maxDepth = query.length - 1;
|
5950
5968
|
$.each(query, function (depth, value) {
|
5951
|
-
var camelCaseValue = depth
|
5969
|
+
var camelCaseValue = depth !== maxDepth
|
5952
5970
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
5953
5971
|
: query
|
5954
5972
|
;
|
5955
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
5973
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
5956
5974
|
object = object[camelCaseValue];
|
5957
5975
|
} else if (object[camelCaseValue] !== undefined) {
|
5958
5976
|
found = object[camelCaseValue];
|
5959
5977
|
|
5960
5978
|
return false;
|
5961
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
5979
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
5962
5980
|
object = object[value];
|
5963
5981
|
} else if (object[value] !== undefined) {
|
5964
5982
|
found = object[value];
|
@@ -6065,7 +6083,7 @@
|
|
6065
6083
|
})(jQuery, window, document);
|
6066
6084
|
|
6067
6085
|
/*!
|
6068
|
-
* # Fomantic-UI 2.9.1-beta.
|
6086
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Dimmer
|
6069
6087
|
* https://github.com/fomantic/Fomantic-UI/
|
6070
6088
|
*
|
6071
6089
|
*
|
@@ -6172,12 +6190,12 @@
|
|
6172
6190
|
|
6173
6191
|
bind: {
|
6174
6192
|
events: function () {
|
6175
|
-
if (settings.on
|
6193
|
+
if (settings.on === 'hover') {
|
6176
6194
|
$dimmable
|
6177
6195
|
.on('mouseenter' + eventNamespace, module.show)
|
6178
6196
|
.on('mouseleave' + eventNamespace, module.hide)
|
6179
6197
|
;
|
6180
|
-
} else if (settings.on
|
6198
|
+
} else if (settings.on === 'click') {
|
6181
6199
|
$dimmable
|
6182
6200
|
.on(clickEvent + eventNamespace, module.toggle)
|
6183
6201
|
;
|
@@ -6331,7 +6349,7 @@
|
|
6331
6349
|
} else {
|
6332
6350
|
module.verbose('Showing dimmer animation with javascript');
|
6333
6351
|
module.set.dimmed();
|
6334
|
-
if (settings.opacity
|
6352
|
+
if (settings.opacity === 'auto') {
|
6335
6353
|
settings.opacity = 0.8;
|
6336
6354
|
}
|
6337
6355
|
$dimmer
|
@@ -6424,8 +6442,8 @@
|
|
6424
6442
|
return $dimmer.is(':animated') || $dimmer.hasClass(className.animating);
|
6425
6443
|
},
|
6426
6444
|
closable: function () {
|
6427
|
-
if (settings.closable
|
6428
|
-
return settings.on
|
6445
|
+
if (settings.closable === 'auto') {
|
6446
|
+
return settings.on !== 'hover';
|
6429
6447
|
}
|
6430
6448
|
|
6431
6449
|
return settings.closable;
|
@@ -6641,17 +6659,17 @@
|
|
6641
6659
|
query = query.split(/[ .]/);
|
6642
6660
|
maxDepth = query.length - 1;
|
6643
6661
|
$.each(query, function (depth, value) {
|
6644
|
-
var camelCaseValue = depth
|
6662
|
+
var camelCaseValue = depth !== maxDepth
|
6645
6663
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
6646
6664
|
: query
|
6647
6665
|
;
|
6648
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
6666
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
6649
6667
|
object = object[camelCaseValue];
|
6650
6668
|
} else if (object[camelCaseValue] !== undefined) {
|
6651
6669
|
found = object[camelCaseValue];
|
6652
6670
|
|
6653
6671
|
return false;
|
6654
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
6672
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
6655
6673
|
object = object[value];
|
6656
6674
|
} else if (object[value] !== undefined) {
|
6657
6675
|
found = object[value];
|
@@ -6800,7 +6818,7 @@
|
|
6800
6818
|
})(jQuery, window, document);
|
6801
6819
|
|
6802
6820
|
/*!
|
6803
|
-
* # Fomantic-UI 2.9.1-beta.
|
6821
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Dropdown
|
6804
6822
|
* https://github.com/fomantic/Fomantic-UI/
|
6805
6823
|
*
|
6806
6824
|
*
|
@@ -7464,12 +7482,12 @@
|
|
7464
7482
|
;
|
7465
7483
|
}
|
7466
7484
|
} else {
|
7467
|
-
if (settings.on
|
7485
|
+
if (settings.on === 'click') {
|
7468
7486
|
$module
|
7469
7487
|
.on('click' + eventNamespace, selector.icon, module.event.icon.click)
|
7470
7488
|
.on('click' + eventNamespace, module.event.test.toggle)
|
7471
7489
|
;
|
7472
|
-
} else if (settings.on
|
7490
|
+
} else if (settings.on === 'hover') {
|
7473
7491
|
$module
|
7474
7492
|
.on('mouseenter' + eventNamespace, module.delay.show)
|
7475
7493
|
.on('mouseleave' + eventNamespace, module.delay.hide)
|
@@ -8214,7 +8232,7 @@
|
|
8214
8232
|
hasActiveLabel = $activeLabel.length > 0,
|
8215
8233
|
hasMultipleActive = $activeLabel.length > 1,
|
8216
8234
|
isFirstLabel = labelIndex === 0,
|
8217
|
-
isLastLabel = labelIndex + 1
|
8235
|
+
isLastLabel = labelIndex + 1 === labelCount,
|
8218
8236
|
isSearch = module.is.searchSelection(),
|
8219
8237
|
isFocusedOnSearch = module.is.focusedOnSearch(),
|
8220
8238
|
isFocused = module.is.focused(),
|
@@ -8225,82 +8243,94 @@
|
|
8225
8243
|
return;
|
8226
8244
|
}
|
8227
8245
|
|
8228
|
-
|
8229
|
-
|
8230
|
-
|
8231
|
-
|
8232
|
-
$label.last().addClass(className.active);
|
8233
|
-
} else if (hasActiveLabel) {
|
8234
|
-
if (!event.shiftKey) {
|
8246
|
+
switch (pressedKey) {
|
8247
|
+
case keys.leftArrow: {
|
8248
|
+
// activate previous label
|
8249
|
+
if ((isFocused || caretAtStart) && !hasActiveLabel) {
|
8235
8250
|
module.verbose('Selecting previous label');
|
8236
|
-
$label.
|
8237
|
-
} else {
|
8238
|
-
|
8239
|
-
|
8240
|
-
|
8241
|
-
|
8242
|
-
|
8243
|
-
|
8244
|
-
|
8245
|
-
.
|
8246
|
-
|
8251
|
+
$label.last().addClass(className.active);
|
8252
|
+
} else if (hasActiveLabel) {
|
8253
|
+
if (!event.shiftKey) {
|
8254
|
+
module.verbose('Selecting previous label');
|
8255
|
+
$label.removeClass(className.active);
|
8256
|
+
} else {
|
8257
|
+
module.verbose('Adding previous label to selection');
|
8258
|
+
}
|
8259
|
+
if (isFirstLabel && !hasMultipleActive) {
|
8260
|
+
$activeLabel.addClass(className.active);
|
8261
|
+
} else {
|
8262
|
+
$activeLabel.prev(selector.siblingLabel)
|
8263
|
+
.addClass(className.active)
|
8264
|
+
.end()
|
8265
|
+
;
|
8266
|
+
}
|
8267
|
+
event.preventDefault();
|
8247
8268
|
}
|
8248
|
-
|
8249
|
-
|
8250
|
-
} else if (pressedKey == keys.rightArrow) {
|
8251
|
-
// activate first label
|
8252
|
-
if (isFocused && !hasActiveLabel) {
|
8253
|
-
$label.first().addClass(className.active);
|
8269
|
+
|
8270
|
+
break;
|
8254
8271
|
}
|
8255
|
-
|
8256
|
-
|
8257
|
-
if (!
|
8258
|
-
|
8259
|
-
$label.removeClass(className.active);
|
8260
|
-
} else {
|
8261
|
-
module.verbose('Adding next label to selection');
|
8272
|
+
case keys.rightArrow: {
|
8273
|
+
// activate first label
|
8274
|
+
if (isFocused && !hasActiveLabel) {
|
8275
|
+
$label.first().addClass(className.active);
|
8262
8276
|
}
|
8263
|
-
|
8264
|
-
|
8265
|
-
|
8266
|
-
|
8277
|
+
// activate next label
|
8278
|
+
if (hasActiveLabel) {
|
8279
|
+
if (!event.shiftKey) {
|
8280
|
+
module.verbose('Selecting next label');
|
8281
|
+
$label.removeClass(className.active);
|
8282
|
+
} else {
|
8283
|
+
module.verbose('Adding next label to selection');
|
8284
|
+
}
|
8285
|
+
if (isLastLabel) {
|
8286
|
+
if (isSearch) {
|
8287
|
+
if (!isFocusedOnSearch) {
|
8288
|
+
module.focusSearch();
|
8289
|
+
} else {
|
8290
|
+
$label.removeClass(className.active);
|
8291
|
+
}
|
8292
|
+
} else if (hasMultipleActive) {
|
8293
|
+
$activeLabel.next(selector.siblingLabel).addClass(className.active);
|
8267
8294
|
} else {
|
8268
|
-
$
|
8295
|
+
$activeLabel.addClass(className.active);
|
8269
8296
|
}
|
8270
|
-
} else if (hasMultipleActive) {
|
8271
|
-
$activeLabel.next(selector.siblingLabel).addClass(className.active);
|
8272
8297
|
} else {
|
8273
|
-
$activeLabel.addClass(className.active);
|
8298
|
+
$activeLabel.next(selector.siblingLabel).addClass(className.active);
|
8274
8299
|
}
|
8275
|
-
|
8276
|
-
$activeLabel.next(selector.siblingLabel).addClass(className.active);
|
8300
|
+
event.preventDefault();
|
8277
8301
|
}
|
8278
|
-
|
8302
|
+
|
8303
|
+
break;
|
8279
8304
|
}
|
8280
|
-
|
8281
|
-
|
8282
|
-
|
8283
|
-
|
8284
|
-
if (
|
8285
|
-
|
8305
|
+
case keys.deleteKey:
|
8306
|
+
case keys.backspace: {
|
8307
|
+
if (hasActiveLabel) {
|
8308
|
+
module.verbose('Removing active labels');
|
8309
|
+
if (isLastLabel) {
|
8310
|
+
if (isSearch && !isFocusedOnSearch) {
|
8311
|
+
module.focusSearch();
|
8312
|
+
}
|
8313
|
+
}
|
8314
|
+
$activeLabel.last().next(selector.siblingLabel).addClass(className.active);
|
8315
|
+
module.remove.activeLabels($activeLabel);
|
8316
|
+
if (!module.is.visible()) {
|
8317
|
+
module.show();
|
8318
|
+
}
|
8319
|
+
event.preventDefault();
|
8320
|
+
} else if (caretAtStart && !isSelectedSearch && !hasActiveLabel && pressedKey === keys.backspace) {
|
8321
|
+
module.verbose('Removing last label on input backspace');
|
8322
|
+
$activeLabel = $label.last().addClass(className.active);
|
8323
|
+
module.remove.activeLabels($activeLabel);
|
8324
|
+
if (!module.is.visible()) {
|
8325
|
+
module.show();
|
8286
8326
|
}
|
8287
8327
|
}
|
8288
|
-
|
8289
|
-
|
8290
|
-
|
8291
|
-
|
8292
|
-
|
8293
|
-
event.preventDefault();
|
8294
|
-
} else if (caretAtStart && !isSelectedSearch && !hasActiveLabel && pressedKey == keys.backspace) {
|
8295
|
-
module.verbose('Removing last label on input backspace');
|
8296
|
-
$activeLabel = $label.last().addClass(className.active);
|
8297
|
-
module.remove.activeLabels($activeLabel);
|
8298
|
-
if (!module.is.visible()) {
|
8299
|
-
module.show();
|
8300
|
-
}
|
8328
|
+
|
8329
|
+
break;
|
8330
|
+
}
|
8331
|
+
default: {
|
8332
|
+
$activeLabel.removeClass(className.active);
|
8301
8333
|
}
|
8302
|
-
} else {
|
8303
|
-
$activeLabel.removeClass(className.active);
|
8304
8334
|
}
|
8305
8335
|
}
|
8306
8336
|
},
|
@@ -8328,7 +8358,7 @@
|
|
8328
8358
|
hasSelectedItem = $selectedItem.length > 0,
|
8329
8359
|
selectedIsSelectable = $selectedItem.not(selector.unselectable).length > 0,
|
8330
8360
|
delimiterPressed = event.key === settings.delimiter && module.is.multiple(),
|
8331
|
-
isAdditionWithoutMenu = settings.allowAdditions && (pressedKey
|
8361
|
+
isAdditionWithoutMenu = settings.allowAdditions && (pressedKey === keys.enter || delimiterPressed),
|
8332
8362
|
$nextItem,
|
8333
8363
|
isSubMenuItem
|
8334
8364
|
;
|
@@ -8349,8 +8379,8 @@
|
|
8349
8379
|
// visible menu keyboard shortcuts
|
8350
8380
|
if (module.is.visible()) {
|
8351
8381
|
// enter (select or open sub-menu)
|
8352
|
-
if (pressedKey
|
8353
|
-
if (pressedKey
|
8382
|
+
if (pressedKey === keys.enter || delimiterPressed) {
|
8383
|
+
if (pressedKey === keys.enter && hasSelectedItem && hasSubMenu && !settings.allowCategorySelection) {
|
8354
8384
|
module.verbose('Pressed enter on unselectable category, opening sub menu');
|
8355
8385
|
pressedKey = keys.rightArrow;
|
8356
8386
|
} else if (selectedIsSelectable) {
|
@@ -8368,7 +8398,7 @@
|
|
8368
8398
|
|
8369
8399
|
// sub-menu actions
|
8370
8400
|
if (hasSelectedItem) {
|
8371
|
-
if (pressedKey
|
8401
|
+
if (pressedKey === keys.leftArrow) {
|
8372
8402
|
isSubMenuItem = $parentMenu[0] !== $menu[0];
|
8373
8403
|
|
8374
8404
|
if (isSubMenuItem) {
|
@@ -8386,7 +8416,7 @@
|
|
8386
8416
|
}
|
8387
8417
|
|
8388
8418
|
// right arrow (show sub-menu)
|
8389
|
-
if (pressedKey
|
8419
|
+
if (pressedKey === keys.rightArrow) {
|
8390
8420
|
if (hasSubMenu) {
|
8391
8421
|
module.verbose('Right key pressed, opening sub-menu');
|
8392
8422
|
module.animate.show(false, $subMenu);
|
@@ -8403,7 +8433,7 @@
|
|
8403
8433
|
}
|
8404
8434
|
|
8405
8435
|
// up arrow (traverse menu up)
|
8406
|
-
if (pressedKey
|
8436
|
+
if (pressedKey === keys.upArrow) {
|
8407
8437
|
$nextItem = hasSelectedItem && inVisibleMenu
|
8408
8438
|
? $selectedItem.prevAll(selector.item + ':not(' + selector.unselectable + ')').eq(0)
|
8409
8439
|
: $item.eq(0);
|
@@ -8430,7 +8460,7 @@
|
|
8430
8460
|
}
|
8431
8461
|
|
8432
8462
|
// down arrow (traverse menu down)
|
8433
|
-
if (pressedKey
|
8463
|
+
if (pressedKey === keys.downArrow) {
|
8434
8464
|
$nextItem = hasSelectedItem && inVisibleMenu
|
8435
8465
|
? $selectedItem.nextAll(selector.item + ':not(' + selector.unselectable + ')').eq(0)
|
8436
8466
|
: $item.eq(0);
|
@@ -8457,28 +8487,28 @@
|
|
8457
8487
|
}
|
8458
8488
|
|
8459
8489
|
// page down (show next page)
|
8460
|
-
if (pressedKey
|
8490
|
+
if (pressedKey === keys.pageUp) {
|
8461
8491
|
module.scrollPage('up');
|
8462
8492
|
event.preventDefault();
|
8463
8493
|
}
|
8464
|
-
if (pressedKey
|
8494
|
+
if (pressedKey === keys.pageDown) {
|
8465
8495
|
module.scrollPage('down');
|
8466
8496
|
event.preventDefault();
|
8467
8497
|
}
|
8468
8498
|
|
8469
8499
|
// escape (close menu)
|
8470
|
-
if (pressedKey
|
8500
|
+
if (pressedKey === keys.escape) {
|
8471
8501
|
module.verbose('Escape key pressed, closing dropdown');
|
8472
8502
|
module.hide();
|
8473
8503
|
event.stopPropagation();
|
8474
8504
|
}
|
8475
8505
|
} else {
|
8476
8506
|
// delimiter key
|
8477
|
-
if (pressedKey
|
8507
|
+
if (pressedKey === keys.enter || delimiterPressed) {
|
8478
8508
|
event.preventDefault();
|
8479
8509
|
}
|
8480
8510
|
// down arrow (open menu)
|
8481
|
-
if (pressedKey
|
8511
|
+
if (pressedKey === keys.downArrow && !module.is.visible()) {
|
8482
8512
|
module.verbose('Down key pressed, showing dropdown');
|
8483
8513
|
module.show();
|
8484
8514
|
event.preventDefault();
|
@@ -8619,7 +8649,7 @@
|
|
8619
8649
|
return $module.data(metadata.defaultValue);
|
8620
8650
|
},
|
8621
8651
|
placeholderText: function () {
|
8622
|
-
if (settings.placeholder
|
8652
|
+
if (settings.placeholder !== 'auto' && typeof settings.placeholder === 'string') {
|
8623
8653
|
return settings.placeholder;
|
8624
8654
|
}
|
8625
8655
|
|
@@ -9169,7 +9199,7 @@
|
|
9169
9199
|
currentScroll = $menu.scrollTop(),
|
9170
9200
|
itemHeight = $item.eq(0).outerHeight(),
|
9171
9201
|
itemsPerPage = Math.floor(menuHeight / itemHeight),
|
9172
|
-
newScroll = direction
|
9202
|
+
newScroll = direction === 'up'
|
9173
9203
|
? currentScroll - (itemHeight * itemsPerPage)
|
9174
9204
|
: currentScroll + (itemHeight * itemsPerPage),
|
9175
9205
|
$selectableItem = $item.not(selector.unselectable),
|
@@ -9177,15 +9207,15 @@
|
|
9177
9207
|
$nextSelectedItem,
|
9178
9208
|
elementIndex
|
9179
9209
|
;
|
9180
|
-
elementIndex = direction
|
9210
|
+
elementIndex = direction === 'up'
|
9181
9211
|
? $selectableItem.index($currentItem) - itemsPerPage
|
9182
9212
|
: $selectableItem.index($currentItem) + itemsPerPage;
|
9183
|
-
isWithinRange = direction
|
9213
|
+
isWithinRange = direction === 'up'
|
9184
9214
|
? elementIndex >= 0
|
9185
9215
|
: elementIndex < $selectableItem.length;
|
9186
9216
|
$nextSelectedItem = isWithinRange
|
9187
9217
|
? $selectableItem.eq(elementIndex)
|
9188
|
-
: (direction
|
9218
|
+
: (direction === 'up'
|
9189
9219
|
? $selectableItem.first()
|
9190
9220
|
: $selectableItem.last());
|
9191
9221
|
if ($nextSelectedItem.length > 0) {
|
@@ -10120,7 +10150,7 @@
|
|
10120
10150
|
values = [values];
|
10121
10151
|
}
|
10122
10152
|
$.each(values, function (index, existingValue) {
|
10123
|
-
if (String(value).toLowerCase()
|
10153
|
+
if (String(value).toLowerCase() === String(existingValue).toLowerCase()) {
|
10124
10154
|
hasValue = true;
|
10125
10155
|
|
10126
10156
|
return false;
|
@@ -10259,7 +10289,7 @@
|
|
10259
10289
|
: false
|
10260
10290
|
;
|
10261
10291
|
|
10262
|
-
return overflowY
|
10292
|
+
return overflowY === 'auto' || overflowY === 'scroll';
|
10263
10293
|
},
|
10264
10294
|
horizontallyScrollableContext: function () {
|
10265
10295
|
var
|
@@ -10268,7 +10298,7 @@
|
|
10268
10298
|
: false
|
10269
10299
|
;
|
10270
10300
|
|
10271
|
-
return overflowX
|
10301
|
+
return overflowX === 'auto' || overflowX === 'scroll';
|
10272
10302
|
},
|
10273
10303
|
},
|
10274
10304
|
|
@@ -10661,17 +10691,17 @@
|
|
10661
10691
|
query = query.split(/[ .]/);
|
10662
10692
|
maxDepth = query.length - 1;
|
10663
10693
|
$.each(query, function (depth, value) {
|
10664
|
-
var camelCaseValue = depth
|
10694
|
+
var camelCaseValue = depth !== maxDepth
|
10665
10695
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
10666
10696
|
: query
|
10667
10697
|
;
|
10668
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
10698
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
10669
10699
|
object = object[camelCaseValue];
|
10670
10700
|
} else if (object[camelCaseValue] !== undefined) {
|
10671
10701
|
found = object[camelCaseValue];
|
10672
10702
|
|
10673
10703
|
return false;
|
10674
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
10704
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
10675
10705
|
object = object[value];
|
10676
10706
|
} else if (object[value] !== undefined) {
|
10677
10707
|
found = object[value];
|
@@ -11026,7 +11056,7 @@
|
|
11026
11056
|
maybeDescriptionVertical = option[fields.descriptionVertical]
|
11027
11057
|
? className.descriptionVertical + ' '
|
11028
11058
|
: '',
|
11029
|
-
hasDescription = escape(option[fields.description] || '', preserveHTML)
|
11059
|
+
hasDescription = escape(option[fields.description] || '', preserveHTML) !== ''
|
11030
11060
|
;
|
11031
11061
|
html += '<div class="' + deQuote(maybeActionable + maybeDisabled + maybeDescriptionVertical + (option[fields.class] || className.item)) + '" data-value="' + deQuote(option[fields.value], true) + '"' + maybeText + '>';
|
11032
11062
|
if (isMenu) {
|
@@ -11101,7 +11131,7 @@
|
|
11101
11131
|
})(jQuery, window, document);
|
11102
11132
|
|
11103
11133
|
/*!
|
11104
|
-
* # Fomantic-UI 2.9.1-beta.
|
11134
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Embed
|
11105
11135
|
* https://github.com/fomantic/Fomantic-UI/
|
11106
11136
|
*
|
11107
11137
|
*
|
@@ -11471,7 +11501,7 @@
|
|
11471
11501
|
|
11472
11502
|
is: {
|
11473
11503
|
video: function () {
|
11474
|
-
return module.get.type()
|
11504
|
+
return module.get.type() === 'video';
|
11475
11505
|
},
|
11476
11506
|
},
|
11477
11507
|
|
@@ -11590,17 +11620,17 @@
|
|
11590
11620
|
query = query.split(/[ .]/);
|
11591
11621
|
maxDepth = query.length - 1;
|
11592
11622
|
$.each(query, function (depth, value) {
|
11593
|
-
var camelCaseValue = depth
|
11623
|
+
var camelCaseValue = depth !== maxDepth
|
11594
11624
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
11595
11625
|
: query
|
11596
11626
|
;
|
11597
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
11627
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
11598
11628
|
object = object[camelCaseValue];
|
11599
11629
|
} else if (object[camelCaseValue] !== undefined) {
|
11600
11630
|
found = object[camelCaseValue];
|
11601
11631
|
|
11602
11632
|
return false;
|
11603
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
11633
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
11604
11634
|
object = object[value];
|
11605
11635
|
} else if (object[value] !== undefined) {
|
11606
11636
|
found = object[value];
|
@@ -11785,7 +11815,7 @@
|
|
11785
11815
|
})(jQuery, window, document);
|
11786
11816
|
|
11787
11817
|
/*!
|
11788
|
-
* # Fomantic-UI 2.9.1-beta.
|
11818
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Flyout
|
11789
11819
|
* https://github.com/fomantic/Fomantic-UI/
|
11790
11820
|
*
|
11791
11821
|
*
|
@@ -11952,7 +11982,7 @@
|
|
11952
11982
|
module.setup.cache();
|
11953
11983
|
});
|
11954
11984
|
|
11955
|
-
if (module.get.direction()
|
11985
|
+
if (module.get.direction() === 'left' || module.get.direction() === 'right') {
|
11956
11986
|
module.setup.heights();
|
11957
11987
|
module.bind.resize();
|
11958
11988
|
}
|
@@ -12226,7 +12256,7 @@
|
|
12226
12256
|
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
12227
12257
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
12228
12258
|
+ ' }';
|
12229
|
-
} else if (direction === 'top' || direction
|
12259
|
+
} else if (direction === 'top' || direction === 'bottom') {
|
12230
12260
|
style += ''
|
12231
12261
|
+ ' .ui.visible.' + direction + '.flyout ~ .fixed,'
|
12232
12262
|
+ ' .ui.visible.' + direction + '.flyout ~ .pusher {'
|
@@ -12245,7 +12275,7 @@
|
|
12245
12275
|
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
12246
12276
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
12247
12277
|
+ ' }';
|
12248
|
-
} else if (direction === 'top' || direction
|
12278
|
+
} else if (direction === 'top' || direction === 'bottom') {
|
12249
12279
|
style += ''
|
12250
12280
|
+ ' body.pushable > .ui.visible.' + direction + '.flyout ~ .pusher::after {'
|
12251
12281
|
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
@@ -12461,7 +12491,7 @@
|
|
12461
12491
|
$otherFlyouts
|
12462
12492
|
.flyout('hide', function () {
|
12463
12493
|
callbackCount++;
|
12464
|
-
if (callbackCount
|
12494
|
+
if (callbackCount === flyoutCount) {
|
12465
12495
|
callback();
|
12466
12496
|
}
|
12467
12497
|
})
|
@@ -12501,7 +12531,7 @@
|
|
12501
12531
|
module.set.dimmed();
|
12502
12532
|
};
|
12503
12533
|
transitionEnd = function (event) {
|
12504
|
-
if (event.target
|
12534
|
+
if (event.target === $module[0]) {
|
12505
12535
|
$module.off(transitionEvent + elementNamespace, transitionEnd);
|
12506
12536
|
module.remove.animating();
|
12507
12537
|
callback.call(element);
|
@@ -12542,7 +12572,7 @@
|
|
12542
12572
|
module.remove.visible();
|
12543
12573
|
};
|
12544
12574
|
transitionEnd = function (event) {
|
12545
|
-
if (event.target
|
12575
|
+
if (event.target === $module[0]) {
|
12546
12576
|
$module.off(transitionEvent + elementNamespace, transitionEnd);
|
12547
12577
|
module.remove.animating();
|
12548
12578
|
module.remove.closing();
|
@@ -13028,17 +13058,17 @@
|
|
13028
13058
|
query = query.split(/[ .]/);
|
13029
13059
|
maxDepth = query.length - 1;
|
13030
13060
|
$.each(query, function (depth, value) {
|
13031
|
-
var camelCaseValue = depth
|
13061
|
+
var camelCaseValue = depth !== maxDepth
|
13032
13062
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
13033
13063
|
: query
|
13034
13064
|
;
|
13035
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
13065
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
13036
13066
|
object = object[camelCaseValue];
|
13037
13067
|
} else if (object[camelCaseValue] !== undefined) {
|
13038
13068
|
found = object[camelCaseValue];
|
13039
13069
|
|
13040
13070
|
return false;
|
13041
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
13071
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
13042
13072
|
object = object[value];
|
13043
13073
|
} else if (object[value] !== undefined) {
|
13044
13074
|
found = object[value];
|
@@ -13321,7 +13351,7 @@
|
|
13321
13351
|
})(jQuery, window, document);
|
13322
13352
|
|
13323
13353
|
/*!
|
13324
|
-
* # Fomantic-UI 2.9.1-beta.
|
13354
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Modal
|
13325
13355
|
* https://github.com/fomantic/Fomantic-UI/
|
13326
13356
|
*
|
13327
13357
|
*
|
@@ -14570,16 +14600,16 @@
|
|
14570
14600
|
query = query.split(/[ .]/);
|
14571
14601
|
maxDepth = query.length - 1;
|
14572
14602
|
$.each(query, function (depth, value) {
|
14573
|
-
var camelCaseValue = depth
|
14603
|
+
var camelCaseValue = depth !== maxDepth
|
14574
14604
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
14575
14605
|
: query;
|
14576
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
14606
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
14577
14607
|
object = object[camelCaseValue];
|
14578
14608
|
} else if (object[camelCaseValue] !== undefined) {
|
14579
14609
|
found = object[camelCaseValue];
|
14580
14610
|
|
14581
14611
|
return false;
|
14582
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
14612
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
14583
14613
|
object = object[value];
|
14584
14614
|
} else if (object[value] !== undefined) {
|
14585
14615
|
found = object[value];
|
@@ -14888,7 +14918,7 @@
|
|
14888
14918
|
})(jQuery, window, document);
|
14889
14919
|
|
14890
14920
|
/*!
|
14891
|
-
* # Fomantic-UI 2.9.1-beta.
|
14921
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Nag
|
14892
14922
|
* https://github.com/fomantic/Fomantic-UI/
|
14893
14923
|
*
|
14894
14924
|
*
|
@@ -15168,7 +15198,7 @@
|
|
15168
15198
|
storedValue = null;
|
15169
15199
|
}
|
15170
15200
|
}
|
15171
|
-
if (storedValue
|
15201
|
+
if (storedValue === 'undefined' || storedValue === 'null' || storedValue === undefined || storedValue === null) {
|
15172
15202
|
storedValue = undefined;
|
15173
15203
|
}
|
15174
15204
|
|
@@ -15298,17 +15328,17 @@
|
|
15298
15328
|
query = query.split(/[ .]/);
|
15299
15329
|
maxDepth = query.length - 1;
|
15300
15330
|
$.each(query, function (depth, value) {
|
15301
|
-
var camelCaseValue = depth
|
15331
|
+
var camelCaseValue = depth !== maxDepth
|
15302
15332
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
15303
15333
|
: query
|
15304
15334
|
;
|
15305
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
15335
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
15306
15336
|
object = object[camelCaseValue];
|
15307
15337
|
} else if (object[camelCaseValue] !== undefined) {
|
15308
15338
|
found = object[camelCaseValue];
|
15309
15339
|
|
15310
15340
|
return false;
|
15311
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
15341
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
15312
15342
|
object = object[value];
|
15313
15343
|
} else if (object[value] !== undefined) {
|
15314
15344
|
found = object[value];
|
@@ -15441,7 +15471,7 @@
|
|
15441
15471
|
})(jQuery, window, document);
|
15442
15472
|
|
15443
15473
|
/*!
|
15444
|
-
* # Fomantic-UI 2.9.1-beta.
|
15474
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Popup
|
15445
15475
|
* https://github.com/fomantic/Fomantic-UI/
|
15446
15476
|
*
|
15447
15477
|
*
|
@@ -15654,7 +15684,7 @@
|
|
15654
15684
|
[].forEach.call(mutations, function (mutation) {
|
15655
15685
|
if (mutation.removedNodes) {
|
15656
15686
|
[].forEach.call(mutation.removedNodes, function (node) {
|
15657
|
-
if (node
|
15687
|
+
if (node === element || $(node).find(element).length > 0) {
|
15658
15688
|
module.debug('Element removed from DOM, tearing down events');
|
15659
15689
|
module.destroy();
|
15660
15690
|
}
|
@@ -15939,7 +15969,7 @@
|
|
15939
15969
|
var
|
15940
15970
|
$popupOffsetParent = module.get.offsetParent($popup),
|
15941
15971
|
targetElement = $target[0],
|
15942
|
-
isWindowEl = $boundary[0]
|
15972
|
+
isWindowEl = $boundary[0] === window,
|
15943
15973
|
targetOffset = $target.offset(),
|
15944
15974
|
parentOffset = settings.inline || (settings.popup && settings.movePopup)
|
15945
15975
|
? $target.offsetParent().offset()
|
@@ -16029,10 +16059,10 @@
|
|
16029
16059
|
return id;
|
16030
16060
|
},
|
16031
16061
|
startEvent: function () {
|
16032
|
-
if (settings.on
|
16062
|
+
if (settings.on === 'hover') {
|
16033
16063
|
return 'mouseenter';
|
16034
16064
|
}
|
16035
|
-
if (settings.on
|
16065
|
+
if (settings.on === 'focus') {
|
16036
16066
|
return 'focus';
|
16037
16067
|
}
|
16038
16068
|
|
@@ -16042,10 +16072,10 @@
|
|
16042
16072
|
return 'scroll';
|
16043
16073
|
},
|
16044
16074
|
endEvent: function () {
|
16045
|
-
if (settings.on
|
16075
|
+
if (settings.on === 'hover') {
|
16046
16076
|
return 'mouseleave';
|
16047
16077
|
}
|
16048
|
-
if (settings.on
|
16078
|
+
if (settings.on === 'focus') {
|
16049
16079
|
return 'blur';
|
16050
16080
|
}
|
16051
16081
|
|
@@ -16140,7 +16170,7 @@
|
|
16140
16170
|
'bottom left': 'left center',
|
16141
16171
|
'left center': 'top left',
|
16142
16172
|
},
|
16143
|
-
adjacentsAvailable = verticalPosition
|
16173
|
+
adjacentsAvailable = verticalPosition === 'top' || verticalPosition === 'bottom',
|
16144
16174
|
oppositeTried = false,
|
16145
16175
|
adjacentTried = false,
|
16146
16176
|
nextPosition = false
|
@@ -16206,11 +16236,11 @@
|
|
16206
16236
|
|
16207
16237
|
if (module.should.centerArrow(calculations)) {
|
16208
16238
|
module.verbose('Adjusting offset to center arrow on small target element');
|
16209
|
-
if (position
|
16239
|
+
if (position === 'top left' || position === 'bottom left') {
|
16210
16240
|
offset += target.width / 2;
|
16211
16241
|
offset -= settings.arrowPixelsFromEdge;
|
16212
16242
|
}
|
16213
|
-
if (position
|
16243
|
+
if (position === 'top right' || position === 'bottom right') {
|
16214
16244
|
offset -= target.width / 2;
|
16215
16245
|
offset += settings.arrowPixelsFromEdge;
|
16216
16246
|
}
|
@@ -16224,10 +16254,10 @@
|
|
16224
16254
|
|
16225
16255
|
if (settings.inline) {
|
16226
16256
|
module.debug('Adding margin to calculation', target.margin);
|
16227
|
-
if (position
|
16257
|
+
if (position === 'left center' || position === 'right center') {
|
16228
16258
|
offset += target.margin.top;
|
16229
16259
|
distanceAway += -target.margin.left;
|
16230
|
-
} else if (position
|
16260
|
+
} else if (position === 'top left' || position === 'top center' || position === 'top right') {
|
16231
16261
|
offset += target.margin.left;
|
16232
16262
|
distanceAway -= target.margin.top;
|
16233
16263
|
} else {
|
@@ -16240,7 +16270,7 @@
|
|
16240
16270
|
|
16241
16271
|
if (module.is.rtl()) {
|
16242
16272
|
position = position.replace(/left|right/g, function (match) {
|
16243
|
-
return match
|
16273
|
+
return match === 'left'
|
16244
16274
|
? 'right'
|
16245
16275
|
: 'left';
|
16246
16276
|
});
|
@@ -16248,12 +16278,12 @@
|
|
16248
16278
|
}
|
16249
16279
|
|
16250
16280
|
// if last attempt use specified last resort position
|
16251
|
-
if (searchDepth
|
16281
|
+
if (searchDepth === settings.maxSearchDepth && typeof settings.lastResort === 'string') {
|
16252
16282
|
position = settings.lastResort;
|
16253
16283
|
}
|
16254
16284
|
|
16255
16285
|
switch (position) {
|
16256
|
-
case 'top left':
|
16286
|
+
case 'top left': {
|
16257
16287
|
positioning = {
|
16258
16288
|
top: 'auto',
|
16259
16289
|
bottom: parent.height - target.top + distanceAway,
|
@@ -16262,7 +16292,8 @@
|
|
16262
16292
|
};
|
16263
16293
|
|
16264
16294
|
break;
|
16265
|
-
|
16295
|
+
}
|
16296
|
+
case 'top center': {
|
16266
16297
|
positioning = {
|
16267
16298
|
bottom: parent.height - target.top + distanceAway,
|
16268
16299
|
left: target.left + (target.width / 2) - (popup.width / 2) + offset,
|
@@ -16271,7 +16302,8 @@
|
|
16271
16302
|
};
|
16272
16303
|
|
16273
16304
|
break;
|
16274
|
-
|
16305
|
+
}
|
16306
|
+
case 'top right': {
|
16275
16307
|
positioning = {
|
16276
16308
|
bottom: parent.height - target.top + distanceAway,
|
16277
16309
|
right: parent.width - target.left - target.width - offset,
|
@@ -16280,7 +16312,8 @@
|
|
16280
16312
|
};
|
16281
16313
|
|
16282
16314
|
break;
|
16283
|
-
|
16315
|
+
}
|
16316
|
+
case 'left center': {
|
16284
16317
|
positioning = {
|
16285
16318
|
top: target.top + (target.height / 2) - (popup.height / 2) + offset,
|
16286
16319
|
right: parent.width - target.left + distanceAway,
|
@@ -16289,7 +16322,8 @@
|
|
16289
16322
|
};
|
16290
16323
|
|
16291
16324
|
break;
|
16292
|
-
|
16325
|
+
}
|
16326
|
+
case 'right center': {
|
16293
16327
|
positioning = {
|
16294
16328
|
top: target.top + (target.height / 2) - (popup.height / 2) + offset,
|
16295
16329
|
left: target.left + target.width + distanceAway,
|
@@ -16298,7 +16332,8 @@
|
|
16298
16332
|
};
|
16299
16333
|
|
16300
16334
|
break;
|
16301
|
-
|
16335
|
+
}
|
16336
|
+
case 'bottom left': {
|
16302
16337
|
positioning = {
|
16303
16338
|
top: target.top + target.height + distanceAway,
|
16304
16339
|
left: target.left + offset,
|
@@ -16307,7 +16342,8 @@
|
|
16307
16342
|
};
|
16308
16343
|
|
16309
16344
|
break;
|
16310
|
-
|
16345
|
+
}
|
16346
|
+
case 'bottom center': {
|
16311
16347
|
positioning = {
|
16312
16348
|
top: target.top + target.height + distanceAway,
|
16313
16349
|
left: target.left + (target.width / 2) - (popup.width / 2) + offset,
|
@@ -16316,7 +16352,8 @@
|
|
16316
16352
|
};
|
16317
16353
|
|
16318
16354
|
break;
|
16319
|
-
|
16355
|
+
}
|
16356
|
+
case 'bottom right': {
|
16320
16357
|
positioning = {
|
16321
16358
|
top: target.top + target.height + distanceAway,
|
16322
16359
|
right: parent.width - target.left - target.width - offset,
|
@@ -16325,6 +16362,7 @@
|
|
16325
16362
|
};
|
16326
16363
|
|
16327
16364
|
break;
|
16365
|
+
}
|
16328
16366
|
}
|
16329
16367
|
if (positioning === undefined) {
|
16330
16368
|
module.error(error.invalidPosition, position);
|
@@ -16422,12 +16460,12 @@
|
|
16422
16460
|
bind: {
|
16423
16461
|
events: function () {
|
16424
16462
|
module.debug('Binding popup events to module');
|
16425
|
-
if (settings.on
|
16463
|
+
if (settings.on === 'click') {
|
16426
16464
|
$module
|
16427
16465
|
.on(clickEvent + eventNamespace, module.toggle)
|
16428
16466
|
;
|
16429
16467
|
}
|
16430
|
-
if (settings.on
|
16468
|
+
if (settings.on === 'hover') {
|
16431
16469
|
$module
|
16432
16470
|
.on('touchstart' + eventNamespace, module.event.touchstart)
|
16433
16471
|
;
|
@@ -16453,12 +16491,12 @@
|
|
16453
16491
|
}
|
16454
16492
|
},
|
16455
16493
|
close: function () {
|
16456
|
-
if (settings.hideOnScroll === true || (settings.hideOnScroll
|
16494
|
+
if (settings.hideOnScroll === true || (settings.hideOnScroll === 'auto' && settings.on !== 'click')) {
|
16457
16495
|
module.bind.closeOnScroll();
|
16458
16496
|
}
|
16459
16497
|
if (module.is.closable()) {
|
16460
16498
|
module.bind.clickaway();
|
16461
|
-
} else if (settings.on
|
16499
|
+
} else if (settings.on === 'hover' && openedWithTouch) {
|
16462
16500
|
module.bind.touchClose();
|
16463
16501
|
}
|
16464
16502
|
},
|
@@ -16521,8 +16559,8 @@
|
|
16521
16559
|
|
16522
16560
|
is: {
|
16523
16561
|
closable: function () {
|
16524
|
-
if (settings.closable
|
16525
|
-
return settings.on
|
16562
|
+
if (settings.closable === 'auto') {
|
16563
|
+
return settings.on !== 'hover';
|
16526
16564
|
}
|
16527
16565
|
|
16528
16566
|
return settings.closable;
|
@@ -16690,17 +16728,17 @@
|
|
16690
16728
|
query = query.split(/[ .]/);
|
16691
16729
|
maxDepth = query.length - 1;
|
16692
16730
|
$.each(query, function (depth, value) {
|
16693
|
-
var camelCaseValue = depth
|
16731
|
+
var camelCaseValue = depth !== maxDepth
|
16694
16732
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
16695
16733
|
: query
|
16696
16734
|
;
|
16697
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
16735
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
16698
16736
|
object = object[camelCaseValue];
|
16699
16737
|
} else if (object[camelCaseValue] !== undefined) {
|
16700
16738
|
found = object[camelCaseValue];
|
16701
16739
|
|
16702
16740
|
return false;
|
16703
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
16741
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
16704
16742
|
object = object[value];
|
16705
16743
|
} else if (object[value] !== undefined) {
|
16706
16744
|
found = object[value];
|
@@ -16958,7 +16996,7 @@
|
|
16958
16996
|
})(jQuery, window, document);
|
16959
16997
|
|
16960
16998
|
/*!
|
16961
|
-
* # Fomantic-UI 2.9.1-beta.
|
16999
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Progress
|
16962
17000
|
* https://github.com/fomantic/Fomantic-UI/
|
16963
17001
|
*
|
16964
17002
|
*
|
@@ -17268,7 +17306,7 @@
|
|
17268
17306
|
},
|
17269
17307
|
|
17270
17308
|
updateInterval: function () {
|
17271
|
-
if (settings.updateInterval
|
17309
|
+
if (settings.updateInterval === 'auto') {
|
17272
17310
|
return settings.duration;
|
17273
17311
|
}
|
17274
17312
|
|
@@ -17419,7 +17457,7 @@
|
|
17419
17457
|
if (isMultiple && allZero) {
|
17420
17458
|
$bar.css('background', 'transparent');
|
17421
17459
|
}
|
17422
|
-
if (firstNonZeroIndex
|
17460
|
+
if (firstNonZeroIndex === -1) {
|
17423
17461
|
firstNonZeroIndex = index;
|
17424
17462
|
}
|
17425
17463
|
lastNonZeroIndex = index;
|
@@ -17434,10 +17472,10 @@
|
|
17434
17472
|
values.forEach(function (_, index) {
|
17435
17473
|
var $bar = $($bars[index]);
|
17436
17474
|
$bar.css({
|
17437
|
-
borderTopLeftRadius: index
|
17438
|
-
borderBottomLeftRadius: index
|
17439
|
-
borderTopRightRadius: index
|
17440
|
-
borderBottomRightRadius: index
|
17475
|
+
borderTopLeftRadius: index === firstNonZeroIndex ? '' : '0',
|
17476
|
+
borderBottomLeftRadius: index === firstNonZeroIndex ? '' : '0',
|
17477
|
+
borderTopRightRadius: index === lastNonZeroIndex ? '' : '0',
|
17478
|
+
borderBottomRightRadius: index === lastNonZeroIndex ? '' : '0',
|
17441
17479
|
});
|
17442
17480
|
});
|
17443
17481
|
$module
|
@@ -17569,10 +17607,10 @@
|
|
17569
17607
|
var $progress = $(element);
|
17570
17608
|
if (text !== undefined) {
|
17571
17609
|
$progress.text(module.get.text(text, index));
|
17572
|
-
} else if (settings.label
|
17610
|
+
} else if (settings.label === 'ratio' && module.has.total()) {
|
17573
17611
|
module.verbose('Adding ratio to bar label');
|
17574
17612
|
$progress.text(module.get.text(settings.text.ratio, index));
|
17575
|
-
} else if (settings.label
|
17613
|
+
} else if (settings.label === 'percent') {
|
17576
17614
|
module.verbose('Adding percentage to bar label');
|
17577
17615
|
$progress.text(module.get.text(settings.text.percent, index));
|
17578
17616
|
}
|
@@ -17821,17 +17859,17 @@
|
|
17821
17859
|
query = query.split(/[ .]/);
|
17822
17860
|
maxDepth = query.length - 1;
|
17823
17861
|
$.each(query, function (depth, value) {
|
17824
|
-
var camelCaseValue = depth
|
17862
|
+
var camelCaseValue = depth !== maxDepth
|
17825
17863
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
17826
17864
|
: query
|
17827
17865
|
;
|
17828
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
17866
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
17829
17867
|
object = object[camelCaseValue];
|
17830
17868
|
} else if (object[camelCaseValue] !== undefined) {
|
17831
17869
|
found = object[camelCaseValue];
|
17832
17870
|
|
17833
17871
|
return false;
|
17834
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
17872
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
17835
17873
|
object = object[value];
|
17836
17874
|
} else if (object[value] !== undefined) {
|
17837
17875
|
found = object[value];
|
@@ -17967,7 +18005,7 @@
|
|
17967
18005
|
})(jQuery, window, document);
|
17968
18006
|
|
17969
18007
|
/*!
|
17970
|
-
* # Fomantic-UI 2.9.1-beta.
|
18008
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Slider
|
17971
18009
|
* https://github.com/fomantic/Fomantic-UI/
|
17972
18010
|
*
|
17973
18011
|
*
|
@@ -18305,7 +18343,7 @@
|
|
18305
18343
|
}
|
18306
18344
|
},
|
18307
18345
|
move: function (event) {
|
18308
|
-
if (event.type
|
18346
|
+
if (event.type === 'mousemove') {
|
18309
18347
|
event.preventDefault(); // prevent text selection etc.
|
18310
18348
|
}
|
18311
18349
|
if (module.is.disabled()) {
|
@@ -18313,14 +18351,14 @@
|
|
18313
18351
|
return;
|
18314
18352
|
}
|
18315
18353
|
var value = module.determine.valueFromEvent(event);
|
18316
|
-
if (event.type
|
18354
|
+
if (event.type === 'mousemove' && $currThumb === undefined) {
|
18317
18355
|
var
|
18318
18356
|
eventPos = module.determine.eventPos(event),
|
18319
18357
|
newPos = module.determine.pos(eventPos)
|
18320
18358
|
;
|
18321
18359
|
$currThumb = initialPosition > newPos ? $thumb : $secondThumb;
|
18322
18360
|
}
|
18323
|
-
if (module.get.step()
|
18361
|
+
if (module.get.step() === 0 || module.is.smooth()) {
|
18324
18362
|
var
|
18325
18363
|
thumbVal = module.thumbVal,
|
18326
18364
|
secondThumbVal = module.secondThumbVal,
|
@@ -18379,31 +18417,35 @@
|
|
18379
18417
|
}
|
18380
18418
|
if (first || module.is.focused()) {
|
18381
18419
|
var step = module.determine.keyMovement(event);
|
18382
|
-
if (step
|
18420
|
+
if (step !== NO_STEP) {
|
18383
18421
|
event.preventDefault();
|
18384
18422
|
switch (step) {
|
18385
|
-
case SINGLE_STEP:
|
18423
|
+
case SINGLE_STEP: {
|
18386
18424
|
module.takeStep();
|
18387
18425
|
|
18388
18426
|
break;
|
18389
|
-
|
18427
|
+
}
|
18428
|
+
case BIG_STEP: {
|
18390
18429
|
module.takeStep(module.get.multiplier());
|
18391
18430
|
|
18392
18431
|
break;
|
18393
|
-
|
18432
|
+
}
|
18433
|
+
case SINGLE_BACKSTEP: {
|
18394
18434
|
module.backStep();
|
18395
18435
|
|
18396
18436
|
break;
|
18397
|
-
|
18437
|
+
}
|
18438
|
+
case BIG_BACKSTEP: {
|
18398
18439
|
module.backStep(module.get.multiplier());
|
18399
18440
|
|
18400
18441
|
break;
|
18442
|
+
}
|
18401
18443
|
}
|
18402
18444
|
}
|
18403
18445
|
}
|
18404
18446
|
},
|
18405
18447
|
activateFocus: function (event) {
|
18406
|
-
if (!module.is.focused() && module.is.hover() && module.determine.keyMovement(event)
|
18448
|
+
if (!module.is.focused() && module.is.hover() && module.determine.keyMovement(event) !== NO_STEP) {
|
18407
18449
|
event.preventDefault();
|
18408
18450
|
module.event.keydown(event, true);
|
18409
18451
|
$module.trigger('focus');
|
@@ -18411,7 +18453,7 @@
|
|
18411
18453
|
},
|
18412
18454
|
resize: function (_event) {
|
18413
18455
|
// To avoid a useless performance cost, we only call the label refresh when its necessary
|
18414
|
-
if (gapRatio
|
18456
|
+
if (gapRatio !== module.get.gapRatio()) {
|
18415
18457
|
module.setup.labels();
|
18416
18458
|
gapRatio = module.get.gapRatio();
|
18417
18459
|
}
|
@@ -18427,7 +18469,9 @@
|
|
18427
18469
|
module.setup.labels();
|
18428
18470
|
},
|
18429
18471
|
takeStep: function (multiplier) {
|
18430
|
-
|
18472
|
+
if (!multiplier) {
|
18473
|
+
multiplier = 1;
|
18474
|
+
}
|
18431
18475
|
var
|
18432
18476
|
step = module.get.step(),
|
18433
18477
|
currValue = module.get.currentThumbValue()
|
@@ -18435,7 +18479,7 @@
|
|
18435
18479
|
module.verbose('Taking a step');
|
18436
18480
|
if (step > 0) {
|
18437
18481
|
module.set.value(currValue + step * multiplier);
|
18438
|
-
} else if (step
|
18482
|
+
} else if (step === 0) {
|
18439
18483
|
var
|
18440
18484
|
precision = module.get.precision(),
|
18441
18485
|
newValue = currValue + (multiplier / precision)
|
@@ -18445,7 +18489,9 @@
|
|
18445
18489
|
},
|
18446
18490
|
|
18447
18491
|
backStep: function (multiplier) {
|
18448
|
-
|
18492
|
+
if (!multiplier) {
|
18493
|
+
multiplier = 1;
|
18494
|
+
}
|
18449
18495
|
var
|
18450
18496
|
step = module.get.step(),
|
18451
18497
|
currValue = module.get.currentThumbValue()
|
@@ -18453,7 +18499,7 @@
|
|
18453
18499
|
module.verbose('Going back a step');
|
18454
18500
|
if (step > 0) {
|
18455
18501
|
module.set.value(currValue - step * multiplier);
|
18456
|
-
} else if (step
|
18502
|
+
} else if (step === 0) {
|
18457
18503
|
var
|
18458
18504
|
precision = module.get.precision(),
|
18459
18505
|
newValue = currValue - (multiplier / precision)
|
@@ -18542,9 +18588,9 @@
|
|
18542
18588
|
decimalPlaces,
|
18543
18589
|
step = module.get.step()
|
18544
18590
|
;
|
18545
|
-
if (step
|
18591
|
+
if (step !== 0) {
|
18546
18592
|
var split = String(step).split('.');
|
18547
|
-
decimalPlaces = split.length
|
18593
|
+
decimalPlaces = split.length === 2 ? split[1].length : 0;
|
18548
18594
|
} else {
|
18549
18595
|
decimalPlaces = settings.decimalPlaces;
|
18550
18596
|
}
|
@@ -18584,12 +18630,15 @@
|
|
18584
18630
|
}
|
18585
18631
|
|
18586
18632
|
switch (settings.labelType) {
|
18587
|
-
case settings.labelTypes.number:
|
18633
|
+
case settings.labelTypes.number: {
|
18588
18634
|
return Math.round(((value * (module.get.step() === 0 ? 1 : module.get.step())) + module.get.min()) * precision) / precision;
|
18589
|
-
|
18635
|
+
}
|
18636
|
+
case settings.labelTypes.letter: {
|
18590
18637
|
return alphabet[value % 26];
|
18591
|
-
|
18638
|
+
}
|
18639
|
+
default: {
|
18592
18640
|
return value;
|
18641
|
+
}
|
18593
18642
|
}
|
18594
18643
|
},
|
18595
18644
|
value: function () {
|
@@ -18600,7 +18649,7 @@
|
|
18600
18649
|
},
|
18601
18650
|
thumbValue: function (which) {
|
18602
18651
|
switch (which) {
|
18603
|
-
case 'second':
|
18652
|
+
case 'second': {
|
18604
18653
|
if (module.is.range()) {
|
18605
18654
|
return module.secondThumbVal;
|
18606
18655
|
}
|
@@ -18608,9 +18657,10 @@
|
|
18608
18657
|
module.error(error.notrange);
|
18609
18658
|
|
18610
18659
|
break;
|
18611
|
-
|
18612
|
-
default:
|
18660
|
+
}
|
18661
|
+
default: {
|
18613
18662
|
return module.thumbVal;
|
18663
|
+
}
|
18614
18664
|
}
|
18615
18665
|
},
|
18616
18666
|
multiplier: function () {
|
@@ -18618,7 +18668,7 @@
|
|
18618
18668
|
},
|
18619
18669
|
thumbPosition: function (which) {
|
18620
18670
|
switch (which) {
|
18621
|
-
case 'second':
|
18671
|
+
case 'second': {
|
18622
18672
|
if (module.is.range()) {
|
18623
18673
|
return secondPos;
|
18624
18674
|
}
|
@@ -18626,9 +18676,10 @@
|
|
18626
18676
|
module.error(error.notrange);
|
18627
18677
|
|
18628
18678
|
break;
|
18629
|
-
|
18630
|
-
default:
|
18679
|
+
}
|
18680
|
+
default: {
|
18631
18681
|
return position;
|
18682
|
+
}
|
18632
18683
|
}
|
18633
18684
|
},
|
18634
18685
|
gapRatio: function () {
|
@@ -18716,7 +18767,7 @@
|
|
18716
18767
|
trackLength = module.get.trackLength(),
|
18717
18768
|
step = module.get.step(),
|
18718
18769
|
position = Math.round(ratio * trackLength),
|
18719
|
-
adjustedPos = step
|
18770
|
+
adjustedPos = step === 0 ? position : Math.round(position / step) * step
|
18720
18771
|
;
|
18721
18772
|
|
18722
18773
|
return adjustedPos;
|
@@ -18792,10 +18843,10 @@
|
|
18792
18843
|
range = module.get.max() - module.get.min(),
|
18793
18844
|
step = module.get.step(),
|
18794
18845
|
value = ratio * range,
|
18795
|
-
difference = step
|
18846
|
+
difference = step === 0 ? value : Math.round(value / step) * step
|
18796
18847
|
;
|
18797
18848
|
module.verbose('Determined value based upon position: ' + position + ' as: ' + value);
|
18798
|
-
if (value
|
18849
|
+
if (value !== difference) {
|
18799
18850
|
module.verbose('Rounding value to closest step: ' + difference);
|
18800
18851
|
}
|
18801
18852
|
// Use precision to avoid ugly Javascript floating point rounding issues
|
@@ -18820,16 +18871,16 @@
|
|
18820
18871
|
? (module.is.reversed() ? keys.leftArrow : keys.rightArrow)
|
18821
18872
|
: keys.rightArrow
|
18822
18873
|
;
|
18823
|
-
if (key
|
18874
|
+
if (key === downArrow || key === leftArrow) {
|
18824
18875
|
return SINGLE_BACKSTEP;
|
18825
18876
|
}
|
18826
|
-
if (key
|
18877
|
+
if (key === upArrow || key === rightArrow) {
|
18827
18878
|
return SINGLE_STEP;
|
18828
18879
|
}
|
18829
|
-
if (key
|
18880
|
+
if (key === keys.pageDown) {
|
18830
18881
|
return BIG_BACKSTEP;
|
18831
18882
|
}
|
18832
|
-
if (key
|
18883
|
+
if (key === keys.pageUp) {
|
18833
18884
|
return BIG_STEP;
|
18834
18885
|
}
|
18835
18886
|
|
@@ -18961,7 +19012,7 @@
|
|
18961
19012
|
position: function (newValue, $element) {
|
18962
19013
|
var
|
18963
19014
|
newPos = module.handleNewValuePosition(newValue),
|
18964
|
-
$targetThumb = $element
|
19015
|
+
$targetThumb = $element || $currThumb,
|
18965
19016
|
thumbVal = module.thumbVal || module.get.min(),
|
18966
19017
|
secondThumbVal = module.secondThumbVal || module.get.min()
|
18967
19018
|
;
|
@@ -19177,17 +19228,17 @@
|
|
19177
19228
|
query = query.split(/[ .]/);
|
19178
19229
|
maxDepth = query.length - 1;
|
19179
19230
|
$.each(query, function (depth, value) {
|
19180
|
-
var camelCaseValue = depth
|
19231
|
+
var camelCaseValue = depth !== maxDepth
|
19181
19232
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
19182
19233
|
: query
|
19183
19234
|
;
|
19184
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
19235
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
19185
19236
|
object = object[camelCaseValue];
|
19186
19237
|
} else if (object[camelCaseValue] !== undefined) {
|
19187
19238
|
found = object[camelCaseValue];
|
19188
19239
|
|
19189
19240
|
return false;
|
19190
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
19241
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
19191
19242
|
object = object[value];
|
19192
19243
|
} else if (object[value] !== undefined) {
|
19193
19244
|
found = object[value];
|
@@ -19307,7 +19358,7 @@
|
|
19307
19358
|
})(jQuery, window, document);
|
19308
19359
|
|
19309
19360
|
/*!
|
19310
|
-
* # Fomantic-UI 2.9.1-beta.
|
19361
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Rating
|
19311
19362
|
* https://github.com/fomantic/Fomantic-UI/
|
19312
19363
|
*
|
19313
19364
|
*
|
@@ -19451,11 +19502,11 @@
|
|
19451
19502
|
$activeIcon = $(this),
|
19452
19503
|
currentRating = module.get.rating(),
|
19453
19504
|
rating = $icon.index($activeIcon) + 1,
|
19454
|
-
canClear = settings.clearable
|
19505
|
+
canClear = settings.clearable === 'auto'
|
19455
19506
|
? $icon.length === 1
|
19456
19507
|
: settings.clearable
|
19457
19508
|
;
|
19458
|
-
if (canClear && currentRating
|
19509
|
+
if (canClear && currentRating === rating) {
|
19459
19510
|
module.clearRating();
|
19460
19511
|
} else {
|
19461
19512
|
module.set.rating(rating);
|
@@ -19722,17 +19773,17 @@
|
|
19722
19773
|
query = query.split(/[ .]/);
|
19723
19774
|
maxDepth = query.length - 1;
|
19724
19775
|
$.each(query, function (depth, value) {
|
19725
|
-
var camelCaseValue = depth
|
19776
|
+
var camelCaseValue = depth !== maxDepth
|
19726
19777
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
19727
19778
|
: query
|
19728
19779
|
;
|
19729
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
19780
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
19730
19781
|
object = object[camelCaseValue];
|
19731
19782
|
} else if (object[camelCaseValue] !== undefined) {
|
19732
19783
|
found = object[camelCaseValue];
|
19733
19784
|
|
19734
19785
|
return false;
|
19735
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
19786
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
19736
19787
|
object = object[value];
|
19737
19788
|
} else if (object[value] !== undefined) {
|
19738
19789
|
found = object[value];
|
@@ -19848,7 +19899,7 @@
|
|
19848
19899
|
})(jQuery, window, document);
|
19849
19900
|
|
19850
19901
|
/*!
|
19851
|
-
* # Fomantic-UI 2.9.1-beta.
|
19902
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Search
|
19852
19903
|
* https://github.com/fomantic/Fomantic-UI/
|
19853
19904
|
*
|
19854
19905
|
*
|
@@ -20086,7 +20137,7 @@
|
|
20086
20137
|
if (href) {
|
20087
20138
|
event.preventDefault();
|
20088
20139
|
module.verbose('Opening search link found in result', $link);
|
20089
|
-
if (target
|
20140
|
+
if (target === '_blank' || event.ctrlKey) {
|
20090
20141
|
window.open(href);
|
20091
20142
|
} else {
|
20092
20143
|
window.location.href = href;
|
@@ -20138,7 +20189,7 @@
|
|
20138
20189
|
newIndex
|
20139
20190
|
;
|
20140
20191
|
// search shortcuts
|
20141
|
-
if (keyCode
|
20192
|
+
if (keyCode === keys.escape) {
|
20142
20193
|
if (!module.is.visible()) {
|
20143
20194
|
module.verbose('Escape key pressed, blurring search field');
|
20144
20195
|
$prompt.trigger('blur');
|
@@ -20149,7 +20200,7 @@
|
|
20149
20200
|
resultsDismissed = true;
|
20150
20201
|
}
|
20151
20202
|
if (module.is.visible()) {
|
20152
|
-
if (keyCode
|
20203
|
+
if (keyCode === keys.enter) {
|
20153
20204
|
module.verbose('Enter key pressed, selecting active result');
|
20154
20205
|
if ($result.filter('.' + className.active).length > 0) {
|
20155
20206
|
module.event.result.click.call($result.filter('.' + className.active), event);
|
@@ -20157,7 +20208,7 @@
|
|
20157
20208
|
|
20158
20209
|
return false;
|
20159
20210
|
}
|
20160
|
-
} else if (keyCode
|
20211
|
+
} else if (keyCode === keys.upArrow && hasActiveResult) {
|
20161
20212
|
module.verbose('Up key pressed, changing active result');
|
20162
20213
|
newIndex = currentIndex - 1 < 0
|
20163
20214
|
? currentIndex
|
@@ -20174,7 +20225,7 @@
|
|
20174
20225
|
;
|
20175
20226
|
module.ensureVisible($result.eq(newIndex));
|
20176
20227
|
event.preventDefault();
|
20177
|
-
} else if (keyCode
|
20228
|
+
} else if (keyCode === keys.downArrow) {
|
20178
20229
|
module.verbose('Down key pressed, changing active result');
|
20179
20230
|
newIndex = currentIndex + 1 >= resultSize
|
20180
20231
|
? currentIndex
|
@@ -20194,7 +20245,7 @@
|
|
20194
20245
|
}
|
20195
20246
|
} else {
|
20196
20247
|
// query shortcuts
|
20197
|
-
if (keyCode
|
20248
|
+
if (keyCode === keys.enter) {
|
20198
20249
|
module.verbose('Enter key pressed, executing query');
|
20199
20250
|
module.query();
|
20200
20251
|
module.set.buttonPressed();
|
@@ -20445,7 +20496,7 @@
|
|
20445
20496
|
module.debug('Using specified max results', results);
|
20446
20497
|
results = results.slice(0, settings.maxResults);
|
20447
20498
|
}
|
20448
|
-
if (settings.type
|
20499
|
+
if (settings.type === 'category') {
|
20449
20500
|
results = module.create.categoryResults(results);
|
20450
20501
|
}
|
20451
20502
|
searchHTML = module.generateResults({
|
@@ -20483,9 +20534,9 @@
|
|
20483
20534
|
// avoid duplicates when pushing results
|
20484
20535
|
addResult = function (array, result) {
|
20485
20536
|
var
|
20486
|
-
notResult = $.inArray(result, results)
|
20487
|
-
notFuzzyResult = $.inArray(result, fuzzyResults)
|
20488
|
-
notExactResults = $.inArray(result, exactResults)
|
20537
|
+
notResult = $.inArray(result, results) === -1,
|
20538
|
+
notFuzzyResult = $.inArray(result, fuzzyResults) === -1,
|
20539
|
+
notExactResults = $.inArray(result, exactResults) === -1
|
20489
20540
|
;
|
20490
20541
|
if (notResult && notFuzzyResult && notExactResults) {
|
20491
20542
|
array.push(result);
|
@@ -20631,7 +20682,7 @@
|
|
20631
20682
|
html = $results.html()
|
20632
20683
|
;
|
20633
20684
|
|
20634
|
-
return html
|
20685
|
+
return html !== '';
|
20635
20686
|
},
|
20636
20687
|
},
|
20637
20688
|
|
@@ -20901,7 +20952,7 @@
|
|
20901
20952
|
if (isProperObject || isProperArray) {
|
20902
20953
|
if (settings.maxResults > 0) {
|
20903
20954
|
if (isProperObject) {
|
20904
|
-
if (settings.type
|
20955
|
+
if (settings.type === 'standard') {
|
20905
20956
|
module.error(error.maxResults);
|
20906
20957
|
}
|
20907
20958
|
} else {
|
@@ -21039,17 +21090,17 @@
|
|
21039
21090
|
query = query.split(/[ .]/);
|
21040
21091
|
maxDepth = query.length - 1;
|
21041
21092
|
$.each(query, function (depth, value) {
|
21042
|
-
var camelCaseValue = depth
|
21093
|
+
var camelCaseValue = depth !== maxDepth
|
21043
21094
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
21044
21095
|
: query
|
21045
21096
|
;
|
21046
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
21097
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
21047
21098
|
object = object[camelCaseValue];
|
21048
21099
|
} else if (object[camelCaseValue] !== undefined) {
|
21049
21100
|
found = object[camelCaseValue];
|
21050
21101
|
|
21051
21102
|
return false;
|
21052
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
21103
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
21053
21104
|
object = object[value];
|
21054
21105
|
} else if (object[value] !== undefined) {
|
21055
21106
|
found = object[value];
|
@@ -21402,7 +21453,7 @@
|
|
21402
21453
|
})(jQuery, window, document);
|
21403
21454
|
|
21404
21455
|
/*!
|
21405
|
-
* # Fomantic-UI 2.9.1-beta.
|
21456
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Shape
|
21406
21457
|
* https://github.com/fomantic/Fomantic-UI/
|
21407
21458
|
*
|
21408
21459
|
*
|
@@ -21588,7 +21639,7 @@
|
|
21588
21639
|
|
21589
21640
|
is: {
|
21590
21641
|
complete: function () {
|
21591
|
-
return $side.filter('.' + className.active)[0]
|
21642
|
+
return $side.filter('.' + className.active)[0] === $nextSide[0];
|
21592
21643
|
},
|
21593
21644
|
animating: function () {
|
21594
21645
|
return $module.hasClass(className.animating);
|
@@ -22107,17 +22158,17 @@
|
|
22107
22158
|
query = query.split(/[ .]/);
|
22108
22159
|
maxDepth = query.length - 1;
|
22109
22160
|
$.each(query, function (depth, value) {
|
22110
|
-
var camelCaseValue = depth
|
22161
|
+
var camelCaseValue = depth !== maxDepth
|
22111
22162
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
22112
22163
|
: query
|
22113
22164
|
;
|
22114
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
22165
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
22115
22166
|
object = object[camelCaseValue];
|
22116
22167
|
} else if (object[camelCaseValue] !== undefined) {
|
22117
22168
|
found = object[camelCaseValue];
|
22118
22169
|
|
22119
22170
|
return false;
|
22120
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
22171
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
22121
22172
|
object = object[value];
|
22122
22173
|
} else if (object[value] !== undefined) {
|
22123
22174
|
found = object[value];
|
@@ -22234,7 +22285,7 @@
|
|
22234
22285
|
})(jQuery, window, document);
|
22235
22286
|
|
22236
22287
|
/*!
|
22237
|
-
* # Fomantic-UI 2.9.1-beta.
|
22288
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Sidebar
|
22238
22289
|
* https://github.com/fomantic/Fomantic-UI/
|
22239
22290
|
*
|
22240
22291
|
*
|
@@ -22484,7 +22535,7 @@
|
|
22484
22535
|
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
22485
22536
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
22486
22537
|
+ ' }';
|
22487
|
-
} else if (direction === 'top' || direction
|
22538
|
+
} else if (direction === 'top' || direction === 'bottom') {
|
22488
22539
|
style += ''
|
22489
22540
|
+ ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
|
22490
22541
|
+ ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
|
@@ -22503,7 +22554,7 @@
|
|
22503
22554
|
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
22504
22555
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
22505
22556
|
+ ' }';
|
22506
|
-
} else if (direction === 'top' || direction
|
22557
|
+
} else if (direction === 'top' || direction === 'bottom') {
|
22507
22558
|
style += ''
|
22508
22559
|
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
22509
22560
|
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
@@ -22634,7 +22685,7 @@
|
|
22634
22685
|
module.debug('Other sidebars currently visible');
|
22635
22686
|
if (settings.exclusive) {
|
22636
22687
|
// if not overlay queue animation after hide
|
22637
|
-
if (settings.transition
|
22688
|
+
if (settings.transition !== 'overlay') {
|
22638
22689
|
module.hideOthers(module.show);
|
22639
22690
|
|
22640
22691
|
return;
|
@@ -22691,7 +22742,7 @@
|
|
22691
22742
|
$otherSidebars
|
22692
22743
|
.sidebar('hide', function () {
|
22693
22744
|
callbackCount++;
|
22694
|
-
if (callbackCount
|
22745
|
+
if (callbackCount === sidebarCount) {
|
22695
22746
|
callback();
|
22696
22747
|
}
|
22697
22748
|
})
|
@@ -22739,7 +22790,7 @@
|
|
22739
22790
|
module.set.dimmed();
|
22740
22791
|
};
|
22741
22792
|
transitionEnd = function (event) {
|
22742
|
-
if (event.target
|
22793
|
+
if (event.target === $transition[0]) {
|
22743
22794
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
22744
22795
|
module.remove.animating();
|
22745
22796
|
callback.call(element);
|
@@ -22756,7 +22807,7 @@
|
|
22756
22807
|
pullPage: function (callback) {
|
22757
22808
|
var
|
22758
22809
|
transition = module.get.transition(),
|
22759
|
-
$transition = transition
|
22810
|
+
$transition = transition === 'overlay' || module.othersActive()
|
22760
22811
|
? $module
|
22761
22812
|
: $pusher,
|
22762
22813
|
animate,
|
@@ -22779,7 +22830,7 @@
|
|
22779
22830
|
module.remove.visible();
|
22780
22831
|
};
|
22781
22832
|
transitionEnd = function (event) {
|
22782
|
-
if (event.target
|
22833
|
+
if (event.target === $transition[0]) {
|
22783
22834
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
22784
22835
|
module.remove.animating();
|
22785
22836
|
module.remove.closing();
|
@@ -22960,10 +23011,10 @@
|
|
22960
23011
|
transition
|
22961
23012
|
;
|
22962
23013
|
transition = module.is.mobile()
|
22963
|
-
? (settings.mobileTransition
|
23014
|
+
? (settings.mobileTransition === 'auto'
|
22964
23015
|
? settings.defaultTransition.mobile[direction]
|
22965
23016
|
: settings.mobileTransition)
|
22966
|
-
: (settings.transition
|
23017
|
+
: (settings.transition === 'auto'
|
22967
23018
|
? settings.defaultTransition.computer[direction]
|
22968
23019
|
: settings.transition);
|
22969
23020
|
module.verbose('Determined transition', transition);
|
@@ -23199,17 +23250,17 @@
|
|
23199
23250
|
query = query.split(/[ .]/);
|
23200
23251
|
maxDepth = query.length - 1;
|
23201
23252
|
$.each(query, function (depth, value) {
|
23202
|
-
var camelCaseValue = depth
|
23253
|
+
var camelCaseValue = depth !== maxDepth
|
23203
23254
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
23204
23255
|
: query
|
23205
23256
|
;
|
23206
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
23257
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
23207
23258
|
object = object[camelCaseValue];
|
23208
23259
|
} else if (object[camelCaseValue] !== undefined) {
|
23209
23260
|
found = object[camelCaseValue];
|
23210
23261
|
|
23211
23262
|
return false;
|
23212
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
23263
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
23213
23264
|
object = object[value];
|
23214
23265
|
} else if (object[value] !== undefined) {
|
23215
23266
|
found = object[value];
|
@@ -23343,7 +23394,7 @@
|
|
23343
23394
|
})(jQuery, window, document);
|
23344
23395
|
|
23345
23396
|
/*!
|
23346
|
-
* # Fomantic-UI 2.9.1-beta.
|
23397
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Sticky
|
23347
23398
|
* https://github.com/fomantic/Fomantic-UI/
|
23348
23399
|
*
|
23349
23400
|
*
|
@@ -23534,7 +23585,7 @@
|
|
23534
23585
|
[].forEach.call(mutations, function (mutation) {
|
23535
23586
|
if (mutation.removedNodes) {
|
23536
23587
|
[].forEach.call(mutation.removedNodes, function (node) {
|
23537
|
-
if (node
|
23588
|
+
if (node === element || $(node).find(element).length > 0) {
|
23538
23589
|
module.debug('Element removed from DOM, tearing down events');
|
23539
23590
|
module.destroy();
|
23540
23591
|
}
|
@@ -23624,7 +23675,7 @@
|
|
23624
23675
|
}
|
23625
23676
|
module.cache = {
|
23626
23677
|
fits: (element.height + settings.offset) <= scrollContext.height,
|
23627
|
-
sameHeight: element.height
|
23678
|
+
sameHeight: element.height === context.height,
|
23628
23679
|
scrollContext: {
|
23629
23680
|
height: scrollContext.height,
|
23630
23681
|
},
|
@@ -23762,7 +23813,7 @@
|
|
23762
23813
|
},
|
23763
23814
|
scroll: function (scroll) {
|
23764
23815
|
module.debug('Setting scroll on element', scroll);
|
23765
|
-
if (module.elementScroll
|
23816
|
+
if (module.elementScroll === scroll) {
|
23766
23817
|
return;
|
23767
23818
|
}
|
23768
23819
|
if (module.is.top()) {
|
@@ -23788,7 +23839,7 @@
|
|
23788
23839
|
|
23789
23840
|
is: {
|
23790
23841
|
standardScroll: function () {
|
23791
|
-
return $scroll[0]
|
23842
|
+
return $scroll[0] === window;
|
23792
23843
|
},
|
23793
23844
|
top: function () {
|
23794
23845
|
return $module.hasClass(className.top);
|
@@ -24139,17 +24190,17 @@
|
|
24139
24190
|
query = query.split(/[ .]/);
|
24140
24191
|
maxDepth = query.length - 1;
|
24141
24192
|
$.each(query, function (depth, value) {
|
24142
|
-
var camelCaseValue = depth
|
24193
|
+
var camelCaseValue = depth !== maxDepth
|
24143
24194
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
24144
24195
|
: query
|
24145
24196
|
;
|
24146
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
24197
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
24147
24198
|
object = object[camelCaseValue];
|
24148
24199
|
} else if (object[camelCaseValue] !== undefined) {
|
24149
24200
|
found = object[camelCaseValue];
|
24150
24201
|
|
24151
24202
|
return false;
|
24152
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
24203
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
24153
24204
|
object = object[value];
|
24154
24205
|
} else if (object[value] !== undefined) {
|
24155
24206
|
found = object[value];
|
@@ -24267,7 +24318,7 @@
|
|
24267
24318
|
})(jQuery, window, document);
|
24268
24319
|
|
24269
24320
|
/*!
|
24270
|
-
* # Fomantic-UI 2.9.1-beta.
|
24321
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Tab
|
24271
24322
|
* https://github.com/fomantic/Fomantic-UI/
|
24272
24323
|
*
|
24273
24324
|
*
|
@@ -24280,7 +24331,7 @@
|
|
24280
24331
|
'use strict';
|
24281
24332
|
|
24282
24333
|
function isWindow(obj) {
|
24283
|
-
return obj
|
24334
|
+
return obj !== null && obj === obj.window;
|
24284
24335
|
}
|
24285
24336
|
|
24286
24337
|
function isFunction(obj) {
|
@@ -24362,12 +24413,12 @@
|
|
24362
24413
|
}
|
24363
24414
|
|
24364
24415
|
var activeTab = module.determine.activeTab();
|
24365
|
-
if (settings.autoTabActivation && instance === undefined && activeTab
|
24416
|
+
if (settings.autoTabActivation && instance === undefined && activeTab === null) {
|
24366
24417
|
activeTab = settings.autoTabActivation === true ? module.get.initialPath() : settings.autoTabActivation;
|
24367
24418
|
module.debug('No active tab detected, setting tab active', activeTab);
|
24368
24419
|
module.changeTab(activeTab);
|
24369
24420
|
}
|
24370
|
-
if (activeTab
|
24421
|
+
if (activeTab !== null && settings.history) {
|
24371
24422
|
var autoUpdate = $.address.autoUpdate();
|
24372
24423
|
$.address.autoUpdate(false);
|
24373
24424
|
$.address.value(activeTab);
|
@@ -24461,7 +24512,7 @@
|
|
24461
24512
|
|
24462
24513
|
return false;
|
24463
24514
|
}
|
24464
|
-
if (settings.historyType
|
24515
|
+
if (settings.historyType === 'state') {
|
24465
24516
|
module.debug('Using HTML5 to manage state');
|
24466
24517
|
if (settings.path !== false) {
|
24467
24518
|
$.address
|
@@ -24606,7 +24657,7 @@
|
|
24606
24657
|
currentPath = module.utilities.arrayToPath(currentPathArray),
|
24607
24658
|
|
24608
24659
|
isTab = module.is.tab(currentPath),
|
24609
|
-
isLastIndex = index + 1
|
24660
|
+
isLastIndex = index + 1 === pathArray.length,
|
24610
24661
|
|
24611
24662
|
$tab = module.get.tabElement(currentPath),
|
24612
24663
|
$anchor,
|
@@ -24660,7 +24711,7 @@
|
|
24660
24711
|
settings.onFirstLoad.call($tab[0], currentPath, parameterArray, historyEvent);
|
24661
24712
|
}
|
24662
24713
|
settings.onLoad.call($tab[0], currentPath, parameterArray, historyEvent);
|
24663
|
-
} else if (tabPath.search('/')
|
24714
|
+
} else if (tabPath.search('/') === -1 && tabPath !== '') {
|
24664
24715
|
// look for in page anchor
|
24665
24716
|
tabPath = module.escape.string(tabPath);
|
24666
24717
|
$anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]');
|
@@ -24718,7 +24769,7 @@
|
|
24718
24769
|
evaluateScripts = evaluateScripts !== undefined
|
24719
24770
|
? evaluateScripts
|
24720
24771
|
: settings.evaluateScripts;
|
24721
|
-
if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase()
|
24772
|
+
if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase() === 'dom' && typeof html !== 'string') {
|
24722
24773
|
$tab
|
24723
24774
|
.empty()
|
24724
24775
|
.append($(html).clone(true))
|
@@ -24749,7 +24800,7 @@
|
|
24749
24800
|
'X-Remote': true,
|
24750
24801
|
},
|
24751
24802
|
onSuccess: function (response) {
|
24752
|
-
if (settings.cacheType
|
24803
|
+
if (settings.cacheType === 'response') {
|
24753
24804
|
module.cache.add(fullTabPath, response);
|
24754
24805
|
}
|
24755
24806
|
module.update.content(tabPath, response);
|
@@ -24764,7 +24815,7 @@
|
|
24764
24815
|
|
24765
24816
|
if (settings.loadOnce) {
|
24766
24817
|
module.cache.add(fullTabPath, true);
|
24767
|
-
} else if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase()
|
24818
|
+
} else if (typeof settings.cacheType === 'string' && settings.cacheType.toLowerCase() === 'dom' && $tab.children().length > 0) {
|
24768
24819
|
setTimeout(function () {
|
24769
24820
|
var
|
24770
24821
|
$clone = $tab.children().clone(true)
|
@@ -24793,7 +24844,7 @@
|
|
24793
24844
|
module.activate.tab(tabPath);
|
24794
24845
|
module.debug('Adding cached content', fullTabPath);
|
24795
24846
|
if (!settings.loadOnce) {
|
24796
|
-
if (settings.evaluateScripts
|
24847
|
+
if (settings.evaluateScripts === 'once') {
|
24797
24848
|
module.update.content(tabPath, cachedContent, false);
|
24798
24849
|
} else {
|
24799
24850
|
module.update.content(tabPath, cachedContent);
|
@@ -24822,7 +24873,7 @@
|
|
24822
24873
|
tab: function (tabPath) {
|
24823
24874
|
var
|
24824
24875
|
$tab = module.get.tabElement(tabPath),
|
24825
|
-
$deactiveTabs = settings.deactivate
|
24876
|
+
$deactiveTabs = settings.deactivate === 'siblings'
|
24826
24877
|
? $tab.siblings($tabs)
|
24827
24878
|
: $tabs.not($tab),
|
24828
24879
|
isActive = $tab.hasClass(className.active)
|
@@ -24843,7 +24894,7 @@
|
|
24843
24894
|
navigation: function (tabPath) {
|
24844
24895
|
var
|
24845
24896
|
$navigation = module.get.navElement(tabPath),
|
24846
|
-
$deactiveNavigation = settings.deactivate
|
24897
|
+
$deactiveNavigation = settings.deactivate === 'siblings'
|
24847
24898
|
? $navigation.siblings($allModules)
|
24848
24899
|
: $allModules.not($navigation),
|
24849
24900
|
isActive = $navigation.hasClass(className.active)
|
@@ -24969,7 +25020,7 @@
|
|
24969
25020
|
utilities: {
|
24970
25021
|
filterArray: function (keepArray, removeArray) {
|
24971
25022
|
return $.grep(keepArray, function (keepValue) {
|
24972
|
-
return $.inArray(keepValue, removeArray)
|
25023
|
+
return $.inArray(keepValue, removeArray) === -1;
|
24973
25024
|
});
|
24974
25025
|
},
|
24975
25026
|
last: function (array) {
|
@@ -25105,17 +25156,17 @@
|
|
25105
25156
|
query = query.split(/[ .]/);
|
25106
25157
|
maxDepth = query.length - 1;
|
25107
25158
|
$.each(query, function (depth, value) {
|
25108
|
-
var camelCaseValue = depth
|
25159
|
+
var camelCaseValue = depth !== maxDepth
|
25109
25160
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
25110
25161
|
: query
|
25111
25162
|
;
|
25112
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
25163
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
25113
25164
|
object = object[camelCaseValue];
|
25114
25165
|
} else if (object[camelCaseValue] !== undefined) {
|
25115
25166
|
found = object[camelCaseValue];
|
25116
25167
|
|
25117
25168
|
return false;
|
25118
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
25169
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
25119
25170
|
object = object[value];
|
25120
25171
|
} else if (object[value] !== undefined) {
|
25121
25172
|
found = object[value];
|
@@ -25244,7 +25295,7 @@
|
|
25244
25295
|
})(jQuery, window, document);
|
25245
25296
|
|
25246
25297
|
/*!
|
25247
|
-
* # Fomantic-UI 2.9.1-beta.
|
25298
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Toast
|
25248
25299
|
* https://github.com/fomantic/Fomantic-UI/
|
25249
25300
|
*
|
25250
25301
|
*
|
@@ -25979,17 +26030,17 @@
|
|
25979
26030
|
query = query.split(/[ .]/);
|
25980
26031
|
maxDepth = query.length - 1;
|
25981
26032
|
$.each(query, function (depth, value) {
|
25982
|
-
var camelCaseValue = depth
|
26033
|
+
var camelCaseValue = depth !== maxDepth
|
25983
26034
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
25984
26035
|
: query
|
25985
26036
|
;
|
25986
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
26037
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
25987
26038
|
object = object[camelCaseValue];
|
25988
26039
|
} else if (object[camelCaseValue] !== undefined) {
|
25989
26040
|
found = object[camelCaseValue];
|
25990
26041
|
|
25991
26042
|
return false;
|
25992
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
26043
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
25993
26044
|
object = object[value];
|
25994
26045
|
} else if (object[value] !== undefined) {
|
25995
26046
|
found = object[value];
|
@@ -26197,7 +26248,7 @@
|
|
26197
26248
|
})(jQuery, window, document);
|
26198
26249
|
|
26199
26250
|
/*!
|
26200
|
-
* # Fomantic-UI 2.9.1-beta.
|
26251
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Transition
|
26201
26252
|
* https://github.com/fomantic/Fomantic-UI/
|
26202
26253
|
*
|
26203
26254
|
*
|
@@ -26340,7 +26391,7 @@
|
|
26340
26391
|
interval = interval !== undefined
|
26341
26392
|
? interval
|
26342
26393
|
: settings.interval;
|
26343
|
-
shouldReverse = settings.reverse
|
26394
|
+
shouldReverse = settings.reverse === 'auto' && direction === className.outward;
|
26344
26395
|
delay = shouldReverse || settings.reverse === true
|
26345
26396
|
? ($allModules.length - index) * interval
|
26346
26397
|
: index * interval;
|
@@ -26527,7 +26578,7 @@
|
|
26527
26578
|
},
|
26528
26579
|
direction: function (direction) {
|
26529
26580
|
direction = direction || module.get.direction();
|
26530
|
-
if (direction
|
26581
|
+
if (direction === className.inward) {
|
26531
26582
|
module.set.inward();
|
26532
26583
|
} else {
|
26533
26584
|
module.set.outward();
|
@@ -26898,10 +26949,10 @@
|
|
26898
26949
|
}
|
26899
26950
|
|
26900
26951
|
$clone.remove();
|
26901
|
-
if (currentAnimation
|
26952
|
+
if (currentAnimation !== inAnimation) {
|
26902
26953
|
module.debug('Direction exists for animation', animation);
|
26903
26954
|
directionExists = true;
|
26904
|
-
} else if (currentAnimation
|
26955
|
+
} else if (currentAnimation === 'none' || !currentAnimation) {
|
26905
26956
|
module.debug('No animation defined in css', animation);
|
26906
26957
|
|
26907
26958
|
return;
|
@@ -27141,17 +27192,17 @@
|
|
27141
27192
|
query = query.split(/[ .]/);
|
27142
27193
|
maxDepth = query.length - 1;
|
27143
27194
|
$.each(query, function (depth, value) {
|
27144
|
-
var camelCaseValue = depth
|
27195
|
+
var camelCaseValue = depth !== maxDepth
|
27145
27196
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
27146
27197
|
: query
|
27147
27198
|
;
|
27148
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
27199
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
27149
27200
|
object = object[camelCaseValue];
|
27150
27201
|
} else if (object[camelCaseValue] !== undefined) {
|
27151
27202
|
found = object[camelCaseValue];
|
27152
27203
|
|
27153
27204
|
return false;
|
27154
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
27205
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
27155
27206
|
object = object[value];
|
27156
27207
|
} else if (object[value] !== undefined) {
|
27157
27208
|
found = object[value];
|
@@ -27282,7 +27333,7 @@
|
|
27282
27333
|
})(jQuery, window, document);
|
27283
27334
|
|
27284
27335
|
/*!
|
27285
|
-
* # Fomantic-UI 2.9.1-beta.
|
27336
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - API
|
27286
27337
|
* https://github.com/fomantic/Fomantic-UI/
|
27287
27338
|
*
|
27288
27339
|
*
|
@@ -27295,7 +27346,7 @@
|
|
27295
27346
|
'use strict';
|
27296
27347
|
|
27297
27348
|
function isWindow(obj) {
|
27298
|
-
return obj
|
27349
|
+
return obj !== null && obj === obj.window;
|
27299
27350
|
}
|
27300
27351
|
|
27301
27352
|
function isFunction(obj) {
|
@@ -27400,7 +27451,7 @@
|
|
27400
27451
|
$module
|
27401
27452
|
.on(triggerEvent + eventNamespace, module.event.trigger)
|
27402
27453
|
;
|
27403
|
-
} else if (settings.on
|
27454
|
+
} else if (settings.on === 'now') {
|
27404
27455
|
module.debug('Querying API endpoint immediately');
|
27405
27456
|
module.query();
|
27406
27457
|
}
|
@@ -27579,7 +27630,7 @@
|
|
27579
27630
|
},
|
27580
27631
|
loading: function () {
|
27581
27632
|
return module.request
|
27582
|
-
? module.request.state()
|
27633
|
+
? module.request.state() === 'pending'
|
27583
27634
|
: false;
|
27584
27635
|
},
|
27585
27636
|
abortedRequest: function (xhr) {
|
@@ -27617,13 +27668,13 @@
|
|
27617
27668
|
return module.cancelled || false;
|
27618
27669
|
},
|
27619
27670
|
successful: function () {
|
27620
|
-
return module.request && module.request.state()
|
27671
|
+
return module.request && module.request.state() === 'resolved';
|
27621
27672
|
},
|
27622
27673
|
failure: function () {
|
27623
|
-
return module.request && module.request.state()
|
27674
|
+
return module.request && module.request.state() === 'rejected';
|
27624
27675
|
},
|
27625
27676
|
complete: function () {
|
27626
|
-
return module.request && (module.request.state()
|
27677
|
+
return module.request && (module.request.state() === 'resolved' || module.request.state() === 'rejected');
|
27627
27678
|
},
|
27628
27679
|
},
|
27629
27680
|
|
@@ -27761,7 +27812,7 @@
|
|
27761
27812
|
while (nameKeys.length > 0) {
|
27762
27813
|
var k = nameKeys.pop();
|
27763
27814
|
|
27764
|
-
if (k
|
27815
|
+
if (k === '' && !Array.isArray(value)) { // foo[]
|
27765
27816
|
value = build([], pushes[pushKey]++, value);
|
27766
27817
|
} else if (settings.regExp.fixed.test(k)) { // foo[n]
|
27767
27818
|
value = build([], k, value);
|
@@ -27808,7 +27859,7 @@
|
|
27808
27859
|
event: {
|
27809
27860
|
trigger: function (event) {
|
27810
27861
|
module.query();
|
27811
|
-
if (event.type
|
27862
|
+
if (event.type === 'submit' || event.type === 'click') {
|
27812
27863
|
event.preventDefault();
|
27813
27864
|
}
|
27814
27865
|
},
|
@@ -27897,15 +27948,15 @@
|
|
27897
27948
|
response = module.get.responseFromXHR(xhr),
|
27898
27949
|
errorMessage = module.get.errorFromRequest(response, status, httpMessage)
|
27899
27950
|
;
|
27900
|
-
if (status
|
27951
|
+
if (status === 'aborted') {
|
27901
27952
|
module.debug('XHR Aborted (Most likely caused by page navigation or CORS Policy)', status, httpMessage);
|
27902
27953
|
settings.onAbort.call(context, status, $module, xhr);
|
27903
27954
|
|
27904
27955
|
return true;
|
27905
27956
|
}
|
27906
|
-
if (status
|
27957
|
+
if (status === 'invalid') {
|
27907
27958
|
module.debug('JSON did not pass success test. A server-side error has most likely occurred', response);
|
27908
|
-
} else if (status
|
27959
|
+
} else if (status === 'error') {
|
27909
27960
|
if (xhr !== undefined) {
|
27910
27961
|
module.debug('XHR produced a server error', status, httpMessage);
|
27911
27962
|
// make sure we have an error to display to console
|
@@ -28112,12 +28163,12 @@
|
|
28112
28163
|
return data;
|
28113
28164
|
},
|
28114
28165
|
event: function () {
|
28115
|
-
if (isWindow(element) || settings.on
|
28166
|
+
if (isWindow(element) || settings.on === 'now') {
|
28116
28167
|
module.debug('API called without element, no events attached');
|
28117
28168
|
|
28118
28169
|
return false;
|
28119
28170
|
}
|
28120
|
-
if (settings.on
|
28171
|
+
if (settings.on === 'auto') {
|
28121
28172
|
if ($module.is('input')) {
|
28122
28173
|
return element.oninput !== undefined
|
28123
28174
|
? 'input'
|
@@ -28287,17 +28338,17 @@
|
|
28287
28338
|
query = query.split(/[ .]/);
|
28288
28339
|
maxDepth = query.length - 1;
|
28289
28340
|
$.each(query, function (depth, value) {
|
28290
|
-
var camelCaseValue = depth
|
28341
|
+
var camelCaseValue = depth !== maxDepth
|
28291
28342
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
28292
28343
|
: query
|
28293
28344
|
;
|
28294
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
28345
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
28295
28346
|
object = object[camelCaseValue];
|
28296
28347
|
} else if (object[camelCaseValue] !== undefined) {
|
28297
28348
|
found = object[camelCaseValue];
|
28298
28349
|
|
28299
28350
|
return false;
|
28300
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
28351
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
28301
28352
|
object = object[value];
|
28302
28353
|
} else if (object[value] !== undefined) {
|
28303
28354
|
found = object[value];
|
@@ -28497,7 +28548,7 @@
|
|
28497
28548
|
})(jQuery, window, document);
|
28498
28549
|
|
28499
28550
|
/*!
|
28500
|
-
* # Fomantic-UI 2.9.1-beta.
|
28551
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - State
|
28501
28552
|
* https://github.com/fomantic/Fomantic-UI/
|
28502
28553
|
*
|
28503
28554
|
*
|
@@ -28731,7 +28782,7 @@
|
|
28731
28782
|
}
|
28732
28783
|
$.when(apiRequest)
|
28733
28784
|
.then(function () {
|
28734
|
-
if (apiRequest.state()
|
28785
|
+
if (apiRequest.state() === 'resolved') {
|
28735
28786
|
module.debug('API request succeeded');
|
28736
28787
|
settings.activateTest = function () {
|
28737
28788
|
return true;
|
@@ -29017,17 +29068,17 @@
|
|
29017
29068
|
query = query.split(/[ .]/);
|
29018
29069
|
maxDepth = query.length - 1;
|
29019
29070
|
$.each(query, function (depth, value) {
|
29020
|
-
var camelCaseValue = depth
|
29071
|
+
var camelCaseValue = depth !== maxDepth
|
29021
29072
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
29022
29073
|
: query
|
29023
29074
|
;
|
29024
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
29075
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
29025
29076
|
object = object[camelCaseValue];
|
29026
29077
|
} else if (object[camelCaseValue] !== undefined) {
|
29027
29078
|
found = object[camelCaseValue];
|
29028
29079
|
|
29029
29080
|
return false;
|
29030
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
29081
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
29031
29082
|
object = object[value];
|
29032
29083
|
} else if (object[value] !== undefined) {
|
29033
29084
|
found = object[value];
|
@@ -29191,7 +29242,7 @@
|
|
29191
29242
|
})(jQuery, window, document);
|
29192
29243
|
|
29193
29244
|
/*!
|
29194
|
-
* # Fomantic-UI 2.9.1-beta.
|
29245
|
+
* # Fomantic-UI 2.9.1-beta.25+bbe4e58 - Visibility
|
29195
29246
|
* https://github.com/fomantic/Fomantic-UI/
|
29196
29247
|
*
|
29197
29248
|
*
|
@@ -29275,10 +29326,10 @@
|
|
29275
29326
|
module.setup.cache();
|
29276
29327
|
|
29277
29328
|
if (module.should.trackChanges()) {
|
29278
|
-
if (settings.type
|
29329
|
+
if (settings.type === 'image') {
|
29279
29330
|
module.setup.image();
|
29280
29331
|
}
|
29281
|
-
if (settings.type
|
29332
|
+
if (settings.type === 'fixed') {
|
29282
29333
|
module.setup.fixed();
|
29283
29334
|
}
|
29284
29335
|
|
@@ -29323,7 +29374,7 @@
|
|
29323
29374
|
.off('scroll' + eventNamespace, module.event.scroll)
|
29324
29375
|
.off('scrollchange' + eventNamespace, module.event.scrollchange)
|
29325
29376
|
;
|
29326
|
-
if (settings.type
|
29377
|
+
if (settings.type === 'fixed') {
|
29327
29378
|
module.resetFixed();
|
29328
29379
|
module.remove.placeholder();
|
29329
29380
|
}
|
@@ -29381,7 +29432,7 @@
|
|
29381
29432
|
[].forEach.call(mutations, function (mutation) {
|
29382
29433
|
if (mutation.removedNodes) {
|
29383
29434
|
[].forEach.call(mutation.removedNodes, function (node) {
|
29384
|
-
if (node
|
29435
|
+
if (node === element || $(node).find(element).length > 0) {
|
29385
29436
|
module.debug('Element removed from DOM, tearing down events');
|
29386
29437
|
module.destroy();
|
29387
29438
|
}
|
@@ -29491,7 +29542,7 @@
|
|
29491
29542
|
module.precache(src, function () {
|
29492
29543
|
module.set.image(src, function () {
|
29493
29544
|
loadedCount++;
|
29494
|
-
if (loadedCount
|
29545
|
+
if (loadedCount === moduleCount) {
|
29495
29546
|
settings.onAllLoaded.call(this);
|
29496
29547
|
}
|
29497
29548
|
settings.onLoad.call(this);
|
@@ -29624,7 +29675,7 @@
|
|
29624
29675
|
: false
|
29625
29676
|
;
|
29626
29677
|
|
29627
|
-
return overflowY
|
29678
|
+
return overflowY === 'auto' || overflowY === 'scroll';
|
29628
29679
|
},
|
29629
29680
|
horizontallyScrollableContext: function () {
|
29630
29681
|
var
|
@@ -29633,13 +29684,13 @@
|
|
29633
29684
|
: false
|
29634
29685
|
;
|
29635
29686
|
|
29636
|
-
return overflowX
|
29687
|
+
return overflowX === 'auto' || overflowX === 'scroll';
|
29637
29688
|
},
|
29638
29689
|
},
|
29639
29690
|
|
29640
29691
|
refresh: function () {
|
29641
29692
|
module.debug('Refreshing constants (width/height)');
|
29642
|
-
if (settings.type
|
29693
|
+
if (settings.type === 'fixed') {
|
29643
29694
|
module.resetFixed();
|
29644
29695
|
}
|
29645
29696
|
module.reset();
|
@@ -30319,17 +30370,17 @@
|
|
30319
30370
|
query = query.split(/[ .]/);
|
30320
30371
|
maxDepth = query.length - 1;
|
30321
30372
|
$.each(query, function (depth, value) {
|
30322
|
-
var camelCaseValue = depth
|
30373
|
+
var camelCaseValue = depth !== maxDepth
|
30323
30374
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
30324
30375
|
: query
|
30325
30376
|
;
|
30326
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
30377
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
30327
30378
|
object = object[camelCaseValue];
|
30328
30379
|
} else if (object[camelCaseValue] !== undefined) {
|
30329
30380
|
found = object[camelCaseValue];
|
30330
30381
|
|
30331
30382
|
return false;
|
30332
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
30383
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
30333
30384
|
object = object[value];
|
30334
30385
|
} else if (object[value] !== undefined) {
|
30335
30386
|
found = object[value];
|