fomantic-ui 2.9.1-beta.14 → 2.9.1-beta.16
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/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +14 -12
- 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 +15 -12
- 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 +21 -21
- 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 +7 -7
- 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 +8 -8
- 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 +23 -23
- 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 +4 -4
- 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 +26 -24
- 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 +15 -15
- 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 +138 -8
- package/dist/components/input.min.css +2 -2
- 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 +30 -28
- 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 +6 -6
- 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 +9 -9
- 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 +8 -8
- 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 +4 -4
- 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 +12 -12
- 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 +9 -9
- 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 +10 -15
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +18 -13
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +4 -4
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +4 -1
- package/dist/components/statistic.min.css +2 -2
- 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 +10 -9
- 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 +11 -11
- 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 +28 -25
- 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 +4 -4
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +5 -5
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +258 -57
- package/dist/semantic.js +307 -294
- package/dist/semantic.min.css +2 -2
- package/dist/semantic.min.js +2 -2
- package/package.json +2 -2
- package/src/definitions/behaviors/api.js +14 -11
- package/src/definitions/behaviors/form.js +14 -14
- package/src/definitions/behaviors/state.js +3 -3
- package/src/definitions/behaviors/visibility.js +4 -4
- package/src/definitions/elements/input.less +14 -5
- package/src/definitions/globals/site.js +9 -14
- package/src/definitions/modules/accordion.js +13 -11
- package/src/definitions/modules/calendar.js +20 -20
- package/src/definitions/modules/checkbox.js +6 -6
- package/src/definitions/modules/dimmer.js +7 -7
- package/src/definitions/modules/dropdown.js +22 -22
- package/src/definitions/modules/embed.js +3 -3
- package/src/definitions/modules/flyout.js +25 -23
- package/src/definitions/modules/modal.js +29 -27
- package/src/definitions/modules/nag.js +5 -5
- package/src/definitions/modules/popup.js +8 -8
- package/src/definitions/modules/progress.js +7 -7
- package/src/definitions/modules/rating.js +3 -3
- package/src/definitions/modules/search.js +11 -11
- package/src/definitions/modules/shape.js +4 -4
- package/src/definitions/modules/sidebar.js +8 -8
- package/src/definitions/modules/slider.js +17 -12
- package/src/definitions/modules/sticky.js +9 -8
- package/src/definitions/modules/tab.js +10 -10
- package/src/definitions/modules/toast.js +27 -24
- package/src/definitions/modules/transition.js +3 -3
- package/src/definitions/views/statistic.less +5 -0
- package/src/themes/default/globals/variation.variables +1 -0
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.16+7071e59
|
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.16+7071e59 - Site
|
13
13
|
* https://github.com/fomantic/Fomantic-UI/
|
14
14
|
*
|
15
15
|
*
|
@@ -20,9 +20,9 @@
|
|
20
20
|
|
21
21
|
;(function ($, window, document, undefined) {
|
22
22
|
|
23
|
-
|
23
|
+
function isFunction(obj) {
|
24
24
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
25
|
-
}
|
25
|
+
}
|
26
26
|
|
27
27
|
$.site = $.fn.site = function(parameters) {
|
28
28
|
var
|
@@ -398,7 +398,7 @@ $.site = $.fn.site = function(parameters) {
|
|
398
398
|
}
|
399
399
|
});
|
400
400
|
}
|
401
|
-
if (
|
401
|
+
if ( isFunction( found ) ) {
|
402
402
|
response = found.apply(context, passedArguments);
|
403
403
|
}
|
404
404
|
else if(found !== undefined) {
|
@@ -486,24 +486,19 @@ $.site.settings = {
|
|
486
486
|
};
|
487
487
|
|
488
488
|
// allows for selection of elements with data attributes
|
489
|
-
$.extend($.expr
|
490
|
-
data:
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
}
|
495
|
-
})
|
496
|
-
: function(elem, i, match) {
|
497
|
-
// support: jQuery < 1.8
|
498
|
-
return !!$.data(elem, match[ 3 ]);
|
499
|
-
}
|
489
|
+
$.extend($.expr.pseudos, {
|
490
|
+
data: $.expr.createPseudo(function(dataName) {
|
491
|
+
return function(elem) {
|
492
|
+
return !!$.data(elem, dataName);
|
493
|
+
};
|
494
|
+
})
|
500
495
|
});
|
501
496
|
|
502
497
|
|
503
498
|
})( jQuery, window, document );
|
504
499
|
|
505
500
|
/*!
|
506
|
-
* # Fomantic-UI 2.9.1-beta.
|
501
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Form Validation
|
507
502
|
* https://github.com/fomantic/Fomantic-UI/
|
508
503
|
*
|
509
504
|
*
|
@@ -516,9 +511,9 @@ $.extend($.expr[ ":" ], {
|
|
516
511
|
|
517
512
|
'use strict';
|
518
513
|
|
519
|
-
|
514
|
+
function isFunction(obj) {
|
520
515
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
521
|
-
}
|
516
|
+
}
|
522
517
|
|
523
518
|
window = (typeof window != 'undefined' && window.Math == Math)
|
524
519
|
? window
|
@@ -643,7 +638,7 @@ $.fn.form = function(parameters) {
|
|
643
638
|
submit: function() {
|
644
639
|
module.verbose('Submitting form', $module);
|
645
640
|
submitting = true;
|
646
|
-
$module.submit
|
641
|
+
$module.trigger('submit');
|
647
642
|
},
|
648
643
|
|
649
644
|
attachEvents: function(selector, action) {
|
@@ -1042,7 +1037,7 @@ $.fn.form = function(parameters) {
|
|
1042
1037
|
ancillary = module.get.ancillaryValue(rule),
|
1043
1038
|
$field = module.get.field(field.identifier),
|
1044
1039
|
value = $field.val(),
|
1045
|
-
prompt =
|
1040
|
+
prompt = isFunction(rule.prompt)
|
1046
1041
|
? rule.prompt(value)
|
1047
1042
|
: rule.prompt || settings.prompt[ruleName] || settings.text.unspecifiedRule,
|
1048
1043
|
requiresValue = (prompt.search('{value}') !== -1),
|
@@ -1650,7 +1645,7 @@ $.fn.form = function(parameters) {
|
|
1650
1645
|
$field.each(function (_index, el) {
|
1651
1646
|
var
|
1652
1647
|
$el = $(el),
|
1653
|
-
$elGroup = $
|
1648
|
+
$elGroup = $el.closest($group),
|
1654
1649
|
isCheckbox = ($el.filter(selector.checkbox).length > 0),
|
1655
1650
|
isRequired = $el.prop('required') || $elGroup.hasClass(className.required) || $elGroup.parent().hasClass(className.required),
|
1656
1651
|
isDisabled = $el.is(':disabled') || $elGroup.hasClass(className.disabled) || $elGroup.parent().hasClass(className.disabled),
|
@@ -1715,21 +1710,21 @@ $.fn.form = function(parameters) {
|
|
1715
1710
|
event.stopImmediatePropagation();
|
1716
1711
|
}
|
1717
1712
|
if(settings.errorFocus && ignoreCallbacks !== true) {
|
1718
|
-
var focusElement, hasTabIndex = true;
|
1713
|
+
var $focusElement, hasTabIndex = true;
|
1719
1714
|
if (typeof settings.errorFocus === 'string') {
|
1720
|
-
focusElement = $(document).find(settings.errorFocus);
|
1721
|
-
hasTabIndex = focusElement.is('[tabindex]');
|
1715
|
+
$focusElement = $(document).find(settings.errorFocus);
|
1716
|
+
hasTabIndex = $focusElement.is('[tabindex]');
|
1722
1717
|
// to be able to focus/scroll into non input elements we need a tabindex
|
1723
1718
|
if (!hasTabIndex) {
|
1724
|
-
focusElement.attr('tabindex',-1);
|
1719
|
+
$focusElement.attr('tabindex',-1);
|
1725
1720
|
}
|
1726
1721
|
} else {
|
1727
|
-
focusElement = $group.filter('.' + className.error).first().find(selector.field);
|
1722
|
+
$focusElement = $group.filter('.' + className.error).first().find(selector.field);
|
1728
1723
|
}
|
1729
|
-
focusElement.focus
|
1724
|
+
$focusElement.trigger('focus');
|
1730
1725
|
// only remove tabindex if it was dynamically created above
|
1731
1726
|
if (!hasTabIndex){
|
1732
|
-
focusElement.removeAttr('tabindex');
|
1727
|
+
$focusElement.removeAttr('tabindex');
|
1733
1728
|
}
|
1734
1729
|
}
|
1735
1730
|
if(ignoreCallbacks !== true) {
|
@@ -1826,7 +1821,7 @@ $.fn.form = function(parameters) {
|
|
1826
1821
|
return ruleFunction.call(field, value, ancillary, $module);
|
1827
1822
|
}
|
1828
1823
|
;
|
1829
|
-
if(
|
1824
|
+
if( !isFunction(ruleFunction) ) {
|
1830
1825
|
module.error(error.noRule, ruleName);
|
1831
1826
|
return;
|
1832
1827
|
}
|
@@ -1985,7 +1980,7 @@ $.fn.form = function(parameters) {
|
|
1985
1980
|
}
|
1986
1981
|
});
|
1987
1982
|
}
|
1988
|
-
if(
|
1983
|
+
if( isFunction( found ) ) {
|
1989
1984
|
response = found.apply(context, passedArguments);
|
1990
1985
|
}
|
1991
1986
|
else if(found !== undefined) {
|
@@ -2581,7 +2576,7 @@ $.fn.form.settings = {
|
|
2581
2576
|
})( jQuery, window, document );
|
2582
2577
|
|
2583
2578
|
/*!
|
2584
|
-
* # Fomantic-UI 2.9.1-beta.
|
2579
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Accordion
|
2585
2580
|
* https://github.com/fomantic/Fomantic-UI/
|
2586
2581
|
*
|
2587
2582
|
*
|
@@ -2594,9 +2589,9 @@ $.fn.form.settings = {
|
|
2594
2589
|
|
2595
2590
|
'use strict';
|
2596
2591
|
|
2597
|
-
|
2592
|
+
function isFunction(obj) {
|
2598
2593
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
2599
|
-
}
|
2594
|
+
}
|
2600
2595
|
|
2601
2596
|
window = (typeof window != 'undefined' && window.Math == Math)
|
2602
2597
|
? window
|
@@ -2938,9 +2933,10 @@ $.fn.accordion = function(parameters) {
|
|
2938
2933
|
|
2939
2934
|
display: function() {
|
2940
2935
|
module.verbose('Removing inline display from element', this);
|
2941
|
-
$(this)
|
2942
|
-
|
2943
|
-
|
2936
|
+
var $element = $(this);
|
2937
|
+
$element.css('display', '');
|
2938
|
+
if($element.attr('style') === '') {
|
2939
|
+
$element
|
2944
2940
|
.attr('style', '')
|
2945
2941
|
.removeAttr('style')
|
2946
2942
|
;
|
@@ -2949,9 +2945,10 @@ $.fn.accordion = function(parameters) {
|
|
2949
2945
|
|
2950
2946
|
opacity: function() {
|
2951
2947
|
module.verbose('Removing inline opacity from element', this);
|
2952
|
-
$(this)
|
2953
|
-
|
2954
|
-
|
2948
|
+
var $element = $(this);
|
2949
|
+
$element.css('opacity', '');
|
2950
|
+
if($element.attr('style') === '') {
|
2951
|
+
$element
|
2955
2952
|
.attr('style', '')
|
2956
2953
|
.removeAttr('style')
|
2957
2954
|
;
|
@@ -3107,7 +3104,7 @@ $.fn.accordion = function(parameters) {
|
|
3107
3104
|
}
|
3108
3105
|
});
|
3109
3106
|
}
|
3110
|
-
if (
|
3107
|
+
if ( isFunction( found ) ) {
|
3111
3108
|
response = found.apply(context, passedArguments);
|
3112
3109
|
}
|
3113
3110
|
else if(found !== undefined) {
|
@@ -3197,8 +3194,8 @@ $.fn.accordion.settings = {
|
|
3197
3194
|
|
3198
3195
|
// Adds easing
|
3199
3196
|
$.extend( $.easing, {
|
3200
|
-
easeOutQuad: function (x
|
3201
|
-
return -
|
3197
|
+
easeOutQuad: function (x) {
|
3198
|
+
return 1 - (1 - x) * (1 - x);;
|
3202
3199
|
}
|
3203
3200
|
});
|
3204
3201
|
|
@@ -3206,7 +3203,7 @@ $.extend( $.easing, {
|
|
3206
3203
|
|
3207
3204
|
|
3208
3205
|
/*!
|
3209
|
-
* # Fomantic-UI 2.9.1-beta.
|
3206
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Calendar
|
3210
3207
|
* https://github.com/fomantic/Fomantic-UI/
|
3211
3208
|
*
|
3212
3209
|
*
|
@@ -3219,9 +3216,9 @@ $.extend( $.easing, {
|
|
3219
3216
|
|
3220
3217
|
'use strict';
|
3221
3218
|
|
3222
|
-
|
3219
|
+
function isFunction(obj) {
|
3223
3220
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
3224
|
-
}
|
3221
|
+
}
|
3225
3222
|
|
3226
3223
|
window = (typeof window != 'undefined' && window.Math == Math)
|
3227
3224
|
? window
|
@@ -3686,24 +3683,24 @@ $.fn.calendar = function(parameters) {
|
|
3686
3683
|
var rangeDate = (updateRange ? focusDate : null) || date || (!isTouch ? focusDate : null);
|
3687
3684
|
|
3688
3685
|
container.find('td').each(function () {
|
3689
|
-
var cell = $(this);
|
3690
|
-
var cellDate = cell.data(metadata.date);
|
3686
|
+
var $cell = $(this);
|
3687
|
+
var cellDate = $cell.data(metadata.date);
|
3691
3688
|
if (!cellDate) {
|
3692
3689
|
return;
|
3693
3690
|
}
|
3694
|
-
var disabled = cell.hasClass(className.disabledCell);
|
3695
|
-
var active = cell.hasClass(className.activeCell);
|
3696
|
-
var adjacent = cell.hasClass(className.adjacentCell);
|
3691
|
+
var disabled = $cell.hasClass(className.disabledCell);
|
3692
|
+
var active = $cell.hasClass(className.activeCell);
|
3693
|
+
var adjacent = $cell.hasClass(className.adjacentCell);
|
3697
3694
|
var focused = module.helper.dateEqual(cellDate, focusDate, mode);
|
3698
3695
|
var inRange = !rangeDate ? false :
|
3699
3696
|
((!!startDate && module.helper.isDateInRange(cellDate, mode, startDate, rangeDate)) ||
|
3700
3697
|
(!!endDate && module.helper.isDateInRange(cellDate, mode, rangeDate, endDate)));
|
3701
|
-
cell.toggleClass(className.focusCell, focused && (!isTouch || isTouchDown) && (!adjacent || (settings.selectAdjacentDays && adjacent)) && !disabled);
|
3698
|
+
$cell.toggleClass(className.focusCell, focused && (!isTouch || isTouchDown) && (!adjacent || (settings.selectAdjacentDays && adjacent)) && !disabled);
|
3702
3699
|
|
3703
|
-
if (module.helper.isTodayButton(cell)) {
|
3700
|
+
if (module.helper.isTodayButton($cell)) {
|
3704
3701
|
return;
|
3705
3702
|
}
|
3706
|
-
cell.toggleClass(className.rangeCell, inRange && !active && !disabled);
|
3703
|
+
$cell.toggleClass(className.rangeCell, inRange && !active && !disabled);
|
3707
3704
|
});
|
3708
3705
|
}
|
3709
3706
|
},
|
@@ -3715,13 +3712,13 @@ $.fn.calendar = function(parameters) {
|
|
3715
3712
|
refreshTooltips: function() {
|
3716
3713
|
var winWidth = $(window).width();
|
3717
3714
|
$container.find('td[data-position]').each(function () {
|
3718
|
-
var cell = $(this);
|
3719
|
-
var tooltipWidth = window.getComputedStyle(cell[0], '::after').width.replace(/[^0-9\.]/g,'');
|
3720
|
-
var tooltipPosition = cell.attr('data-position');
|
3715
|
+
var $cell = $(this);
|
3716
|
+
var tooltipWidth = window.getComputedStyle($cell[0], '::after').width.replace(/[^0-9\.]/g,'');
|
3717
|
+
var tooltipPosition = $cell.attr('data-position');
|
3721
3718
|
// use a fallback width of 250 (calendar width) for IE/Edge (which return "auto")
|
3722
|
-
var calcPosition = (winWidth - cell.width() - (parseInt(tooltipWidth,10) || 250)) > cell.offset().left ? 'right' : 'left';
|
3719
|
+
var calcPosition = (winWidth - $cell.width() - (parseInt(tooltipWidth,10) || 250)) > $cell.offset().left ? 'right' : 'left';
|
3723
3720
|
if(tooltipPosition.indexOf(calcPosition) === -1) {
|
3724
|
-
cell.attr('data-position',tooltipPosition.replace(/(left|right)/,calcPosition));
|
3721
|
+
$cell.attr('data-position',tooltipPosition.replace(/(left|right)/,calcPosition));
|
3725
3722
|
}
|
3726
3723
|
});
|
3727
3724
|
},
|
@@ -4191,16 +4188,16 @@ $.fn.calendar = function(parameters) {
|
|
4191
4188
|
|
4192
4189
|
focus: function () {
|
4193
4190
|
if ($input.length) {
|
4194
|
-
$input.focus
|
4191
|
+
$input.trigger('focus');
|
4195
4192
|
} else {
|
4196
|
-
$container.focus
|
4193
|
+
$container.trigger('focus');
|
4197
4194
|
}
|
4198
4195
|
},
|
4199
4196
|
blur: function () {
|
4200
4197
|
if ($input.length) {
|
4201
|
-
$input.blur
|
4198
|
+
$input.trigger('blur');
|
4202
4199
|
} else {
|
4203
|
-
$container.blur
|
4200
|
+
$container.trigger('blur');
|
4204
4201
|
}
|
4205
4202
|
},
|
4206
4203
|
|
@@ -4655,7 +4652,7 @@ $.fn.calendar = function(parameters) {
|
|
4655
4652
|
}
|
4656
4653
|
});
|
4657
4654
|
}
|
4658
|
-
if (
|
4655
|
+
if (isFunction(found)) {
|
4659
4656
|
response = found.apply(context, passedArguments);
|
4660
4657
|
}
|
4661
4658
|
else if (found !== undefined) {
|
@@ -5106,7 +5103,7 @@ $.fn.calendar.settings = {
|
|
5106
5103
|
})(jQuery, window, document);
|
5107
5104
|
|
5108
5105
|
/*!
|
5109
|
-
* # Fomantic-UI 2.9.1-beta.
|
5106
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Checkbox
|
5110
5107
|
* https://github.com/fomantic/Fomantic-UI/
|
5111
5108
|
*
|
5112
5109
|
*
|
@@ -5119,9 +5116,9 @@ $.fn.calendar.settings = {
|
|
5119
5116
|
|
5120
5117
|
'use strict';
|
5121
5118
|
|
5122
|
-
|
5119
|
+
function isFunction(obj) {
|
5123
5120
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
5124
|
-
}
|
5121
|
+
}
|
5125
5122
|
|
5126
5123
|
window = (typeof window != 'undefined' && window.Math == Math)
|
5127
5124
|
? window
|
@@ -5266,7 +5263,7 @@ $.fn.checkbox = function(parameters) {
|
|
5266
5263
|
var
|
5267
5264
|
$element = $(selector)
|
5268
5265
|
;
|
5269
|
-
event =
|
5266
|
+
event = isFunction(module[event])
|
5270
5267
|
? module[event]
|
5271
5268
|
: module.toggle
|
5272
5269
|
;
|
@@ -5307,7 +5304,7 @@ $.fn.checkbox = function(parameters) {
|
|
5307
5304
|
return;
|
5308
5305
|
}
|
5309
5306
|
module.toggle();
|
5310
|
-
$input.focus
|
5307
|
+
$input.trigger('focus');
|
5311
5308
|
event.preventDefault();
|
5312
5309
|
},
|
5313
5310
|
keydown: function(event) {
|
@@ -5349,7 +5346,7 @@ $.fn.checkbox = function(parameters) {
|
|
5349
5346
|
shortcutPressed = false;
|
5350
5347
|
if(key == keyCode.escape) {
|
5351
5348
|
module.verbose('Escape key pressed blurring field');
|
5352
|
-
$input.blur
|
5349
|
+
$input.trigger('blur');
|
5353
5350
|
shortcutPressed = true;
|
5354
5351
|
event.stopPropagation();
|
5355
5352
|
}
|
@@ -5890,7 +5887,7 @@ $.fn.checkbox = function(parameters) {
|
|
5890
5887
|
}
|
5891
5888
|
});
|
5892
5889
|
}
|
5893
|
-
if (
|
5890
|
+
if ( isFunction( found ) ) {
|
5894
5891
|
response = found.apply(context, passedArguments);
|
5895
5892
|
}
|
5896
5893
|
else if(found !== undefined) {
|
@@ -5990,7 +5987,7 @@ $.fn.checkbox.settings = {
|
|
5990
5987
|
})( jQuery, window, document );
|
5991
5988
|
|
5992
5989
|
/*!
|
5993
|
-
* # Fomantic-UI 2.9.1-beta.
|
5990
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Dimmer
|
5994
5991
|
* https://github.com/fomantic/Fomantic-UI/
|
5995
5992
|
*
|
5996
5993
|
*
|
@@ -6003,9 +6000,9 @@ $.fn.checkbox.settings = {
|
|
6003
6000
|
|
6004
6001
|
'use strict';
|
6005
6002
|
|
6006
|
-
|
6003
|
+
function isFunction(obj) {
|
6007
6004
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
6008
|
-
}
|
6005
|
+
}
|
6009
6006
|
|
6010
6007
|
window = (typeof window != 'undefined' && window.Math == Math)
|
6011
6008
|
? window
|
@@ -6179,7 +6176,7 @@ $.fn.dimmer = function(parameters) {
|
|
6179
6176
|
},
|
6180
6177
|
|
6181
6178
|
show: function(callback) {
|
6182
|
-
callback =
|
6179
|
+
callback = isFunction(callback)
|
6183
6180
|
? callback
|
6184
6181
|
: function(){}
|
6185
6182
|
;
|
@@ -6199,7 +6196,7 @@ $.fn.dimmer = function(parameters) {
|
|
6199
6196
|
},
|
6200
6197
|
|
6201
6198
|
hide: function(callback) {
|
6202
|
-
callback =
|
6199
|
+
callback = isFunction(callback)
|
6203
6200
|
? callback
|
6204
6201
|
: function(){}
|
6205
6202
|
;
|
@@ -6231,7 +6228,7 @@ $.fn.dimmer = function(parameters) {
|
|
6231
6228
|
|
6232
6229
|
animate: {
|
6233
6230
|
show: function(callback) {
|
6234
|
-
callback =
|
6231
|
+
callback = isFunction(callback)
|
6235
6232
|
? callback
|
6236
6233
|
: function(){}
|
6237
6234
|
;
|
@@ -6293,7 +6290,7 @@ $.fn.dimmer = function(parameters) {
|
|
6293
6290
|
}
|
6294
6291
|
},
|
6295
6292
|
hide: function(callback) {
|
6296
|
-
callback =
|
6293
|
+
callback = isFunction(callback)
|
6297
6294
|
? callback
|
6298
6295
|
: function(){}
|
6299
6296
|
;
|
@@ -6619,7 +6616,7 @@ $.fn.dimmer = function(parameters) {
|
|
6619
6616
|
}
|
6620
6617
|
});
|
6621
6618
|
}
|
6622
|
-
if (
|
6619
|
+
if ( isFunction( found ) ) {
|
6623
6620
|
response = found.apply(context, passedArguments);
|
6624
6621
|
}
|
6625
6622
|
else if(found !== undefined) {
|
@@ -6756,7 +6753,7 @@ $.fn.dimmer.settings = {
|
|
6756
6753
|
})( jQuery, window, document );
|
6757
6754
|
|
6758
6755
|
/*!
|
6759
|
-
* # Fomantic-UI 2.9.1-beta.
|
6756
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Dropdown
|
6760
6757
|
* https://github.com/fomantic/Fomantic-UI/
|
6761
6758
|
*
|
6762
6759
|
*
|
@@ -6769,9 +6766,9 @@ $.fn.dimmer.settings = {
|
|
6769
6766
|
|
6770
6767
|
'use strict';
|
6771
6768
|
|
6772
|
-
|
6769
|
+
function isFunction(obj) {
|
6773
6770
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
6774
|
-
}
|
6771
|
+
}
|
6775
6772
|
|
6776
6773
|
window = (typeof window != 'undefined' && window.Math == Math)
|
6777
6774
|
? window
|
@@ -7186,7 +7183,7 @@ $.fn.dropdown = function(parameters) {
|
|
7186
7183
|
settings.forceSelection = true;
|
7187
7184
|
}
|
7188
7185
|
$input
|
7189
|
-
.
|
7186
|
+
.prop('required',false)
|
7190
7187
|
.removeAttr('class')
|
7191
7188
|
.detach()
|
7192
7189
|
.prependTo($module)
|
@@ -7280,7 +7277,7 @@ $.fn.dropdown = function(parameters) {
|
|
7280
7277
|
},
|
7281
7278
|
|
7282
7279
|
show: function(callback, preventFocus) {
|
7283
|
-
callback =
|
7280
|
+
callback = isFunction(callback)
|
7284
7281
|
? callback
|
7285
7282
|
: function(){}
|
7286
7283
|
;
|
@@ -7314,7 +7311,7 @@ $.fn.dropdown = function(parameters) {
|
|
7314
7311
|
},
|
7315
7312
|
|
7316
7313
|
hide: function(callback, preventBlur) {
|
7317
|
-
callback =
|
7314
|
+
callback = isFunction(callback)
|
7318
7315
|
? callback
|
7319
7316
|
: function(){}
|
7320
7317
|
;
|
@@ -7325,7 +7322,7 @@ $.fn.dropdown = function(parameters) {
|
|
7325
7322
|
module.remove.visible();
|
7326
7323
|
// hiding search focus
|
7327
7324
|
if ( module.is.focusedOnSearch() && preventBlur !== true ) {
|
7328
|
-
$search.blur
|
7325
|
+
$search.trigger('blur');
|
7329
7326
|
}
|
7330
7327
|
callback.call(element);
|
7331
7328
|
});
|
@@ -7712,9 +7709,9 @@ $.fn.dropdown = function(parameters) {
|
|
7712
7709
|
.filter(function() {
|
7713
7710
|
// First find the last divider in this divider group
|
7714
7711
|
// Dividers which are direct siblings are considered a group
|
7715
|
-
var lastDivider = $(this).nextUntil(selector.item);
|
7712
|
+
var $lastDivider = $(this).nextUntil(selector.item);
|
7716
7713
|
|
7717
|
-
return (lastDivider.length ? lastDivider : $(this))
|
7714
|
+
return ($lastDivider.length ? $lastDivider : $(this))
|
7718
7715
|
// Count all non-filtered items until the next divider (or end of the dropdown)
|
7719
7716
|
.nextUntil(selector.divider)
|
7720
7717
|
.filter(selector.item + ":not(." + className.filtered + ")")
|
@@ -7769,18 +7766,18 @@ $.fn.dropdown = function(parameters) {
|
|
7769
7766
|
if( module.has.search() && !module.is.focusedOnSearch() ) {
|
7770
7767
|
if(skipHandler) {
|
7771
7768
|
$module.off('focus' + eventNamespace, selector.search);
|
7772
|
-
$search.focus
|
7769
|
+
$search.trigger('focus');
|
7773
7770
|
$module.on('focus' + eventNamespace, selector.search, module.event.search.focus);
|
7774
7771
|
}
|
7775
7772
|
else {
|
7776
|
-
$search.focus
|
7773
|
+
$search.trigger('focus');
|
7777
7774
|
}
|
7778
7775
|
}
|
7779
7776
|
},
|
7780
7777
|
|
7781
7778
|
blurSearch: function() {
|
7782
7779
|
if( module.has.search() ) {
|
7783
|
-
$search.blur
|
7780
|
+
$search.trigger('blur');
|
7784
7781
|
}
|
7785
7782
|
},
|
7786
7783
|
|
@@ -8141,7 +8138,7 @@ $.fn.dropdown = function(parameters) {
|
|
8141
8138
|
;
|
8142
8139
|
// prevents IE11 bug where menu receives focus even though `tabindex=-1`
|
8143
8140
|
if (document.activeElement.tagName.toLowerCase() !== 'input') {
|
8144
|
-
$(document.activeElement).blur
|
8141
|
+
$(document.activeElement).trigger('blur');
|
8145
8142
|
}
|
8146
8143
|
if(!isBubbledEvent && (!hasSubMenu || settings.allowCategorySelection)) {
|
8147
8144
|
if(module.is.searchSelection()) {
|
@@ -8342,7 +8339,7 @@ $.fn.dropdown = function(parameters) {
|
|
8342
8339
|
if(module.is.searchSelection()) {
|
8343
8340
|
module.remove.searchTerm();
|
8344
8341
|
if(module.is.multiple()) {
|
8345
|
-
$search.focus
|
8342
|
+
$search.trigger('focus');
|
8346
8343
|
}
|
8347
8344
|
}
|
8348
8345
|
}
|
@@ -8498,11 +8495,11 @@ $.fn.dropdown = function(parameters) {
|
|
8498
8495
|
selectAction: function(text, value) {
|
8499
8496
|
selectActionActive = true;
|
8500
8497
|
module.verbose('Determining action', settings.action);
|
8501
|
-
if(
|
8498
|
+
if( isFunction( module.action[settings.action] ) ) {
|
8502
8499
|
module.verbose('Triggering preset action', settings.action, text, value);
|
8503
8500
|
module.action[ settings.action ].call(element, text, value, this);
|
8504
8501
|
}
|
8505
|
-
else if(
|
8502
|
+
else if( isFunction(settings.action) ) {
|
8506
8503
|
module.verbose('Triggering user action', settings.action, text, value);
|
8507
8504
|
settings.action.call(element, text, value, this);
|
8508
8505
|
}
|
@@ -8517,7 +8514,7 @@ $.fn.dropdown = function(parameters) {
|
|
8517
8514
|
inDocument = ($target.closest(document.documentElement).length > 0),
|
8518
8515
|
inModule = ($target.closest($module).length > 0)
|
8519
8516
|
;
|
8520
|
-
callback =
|
8517
|
+
callback = isFunction(callback)
|
8521
8518
|
? callback
|
8522
8519
|
: function(){}
|
8523
8520
|
;
|
@@ -8539,7 +8536,7 @@ $.fn.dropdown = function(parameters) {
|
|
8539
8536
|
notOnLabel = ($module.find($label).length === 0 || !(module.is.multiple() && settings.useLabels)),
|
8540
8537
|
notInMenu = ($target.closest($menu).length === 0)
|
8541
8538
|
;
|
8542
|
-
callback =
|
8539
|
+
callback = isFunction(callback)
|
8543
8540
|
? callback
|
8544
8541
|
: function(){}
|
8545
8542
|
;
|
@@ -8854,7 +8851,7 @@ $.fn.dropdown = function(parameters) {
|
|
8854
8851
|
values.sort(function(a, b) {
|
8855
8852
|
return (a.name.toLowerCase().localeCompare(b.name.toLowerCase()));
|
8856
8853
|
});
|
8857
|
-
} else if(
|
8854
|
+
} else if(isFunction(settings.sortSelect)) {
|
8858
8855
|
values.sort(settings.sortSelect);
|
8859
8856
|
}
|
8860
8857
|
select[fields.values] = values;
|
@@ -9226,7 +9223,7 @@ $.fn.dropdown = function(parameters) {
|
|
9226
9223
|
;
|
9227
9224
|
if(isMultiple && hasSearchValue) {
|
9228
9225
|
module.verbose('Adjusting input width', searchWidth, settings.glyphWidth);
|
9229
|
-
$search.css('width', searchWidth);
|
9226
|
+
$search.css('width', searchWidth + 'px');
|
9230
9227
|
}
|
9231
9228
|
if(hasSearchValue || (isSearchMultiple && valueIsSet)) {
|
9232
9229
|
module.verbose('Hiding placeholder text');
|
@@ -10407,7 +10404,7 @@ $.fn.dropdown = function(parameters) {
|
|
10407
10404
|
},
|
10408
10405
|
transition
|
10409
10406
|
;
|
10410
|
-
callback =
|
10407
|
+
callback = isFunction(callback)
|
10411
10408
|
? callback
|
10412
10409
|
: function(){}
|
10413
10410
|
;
|
@@ -10458,7 +10455,7 @@ $.fn.dropdown = function(parameters) {
|
|
10458
10455
|
},
|
10459
10456
|
transition = settings.transition.hideMethod || module.get.transition($subMenu)
|
10460
10457
|
;
|
10461
|
-
callback =
|
10458
|
+
callback = isFunction(callback)
|
10462
10459
|
? callback
|
10463
10460
|
: function(){}
|
10464
10461
|
;
|
@@ -10716,7 +10713,7 @@ $.fn.dropdown = function(parameters) {
|
|
10716
10713
|
}
|
10717
10714
|
});
|
10718
10715
|
}
|
10719
|
-
if (
|
10716
|
+
if ( isFunction( found ) ) {
|
10720
10717
|
response = found.apply(context, passedArguments);
|
10721
10718
|
}
|
10722
10719
|
else if(found !== undefined) {
|
@@ -11132,7 +11129,7 @@ $.fn.dropdown.settings.templates = {
|
|
11132
11129
|
})( jQuery, window, document );
|
11133
11130
|
|
11134
11131
|
/*!
|
11135
|
-
* # Fomantic-UI 2.9.1-beta.
|
11132
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Embed
|
11136
11133
|
* https://github.com/fomantic/Fomantic-UI/
|
11137
11134
|
*
|
11138
11135
|
*
|
@@ -11145,9 +11142,9 @@ $.fn.dropdown.settings.templates = {
|
|
11145
11142
|
|
11146
11143
|
"use strict";
|
11147
11144
|
|
11148
|
-
|
11145
|
+
function isFunction(obj) {
|
11149
11146
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
11150
|
-
}
|
11147
|
+
}
|
11151
11148
|
|
11152
11149
|
window = (typeof window != 'undefined' && window.Math == Math)
|
11153
11150
|
? window
|
@@ -11669,7 +11666,7 @@ $.fn.embed = function(parameters) {
|
|
11669
11666
|
}
|
11670
11667
|
});
|
11671
11668
|
}
|
11672
|
-
if (
|
11669
|
+
if ( isFunction( found ) ) {
|
11673
11670
|
response = found.apply(context, passedArguments);
|
11674
11671
|
}
|
11675
11672
|
else if(found !== undefined) {
|
@@ -11846,7 +11843,7 @@ $.fn.embed.settings = {
|
|
11846
11843
|
})( jQuery, window, document );
|
11847
11844
|
|
11848
11845
|
/*!
|
11849
|
-
* # Fomantic-UI 2.9.1-beta.
|
11846
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Flyout
|
11850
11847
|
* https://github.com/fomantic/Fomantic-UI/
|
11851
11848
|
*
|
11852
11849
|
*
|
@@ -11859,9 +11856,9 @@ $.fn.embed.settings = {
|
|
11859
11856
|
|
11860
11857
|
'use strict';
|
11861
11858
|
|
11862
|
-
|
11859
|
+
function isFunction(obj) {
|
11863
11860
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
11864
|
-
}
|
11861
|
+
}
|
11865
11862
|
|
11866
11863
|
window = (typeof window != 'undefined' && window.Math == Math)
|
11867
11864
|
? window
|
@@ -11952,7 +11949,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
11952
11949
|
module.create.id();
|
11953
11950
|
if(!isFlyoutComponent) {
|
11954
11951
|
module.create.flyout();
|
11955
|
-
if(
|
11952
|
+
if(!isFunction(settings.onHidden)) {
|
11956
11953
|
settings.onHidden = function () {
|
11957
11954
|
module.destroy();
|
11958
11955
|
$module.remove();
|
@@ -11981,17 +11978,19 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
11981
11978
|
icon = el[fields.icon] ? '<i '+(el[fields.text] ? 'aria-hidden="true"' : '')+' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
|
11982
11979
|
text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
|
11983
11980
|
cls = module.helpers.deQuote(el[fields.class] || ''),
|
11984
|
-
click = el[fields.click] &&
|
11981
|
+
click = el[fields.click] && isFunction(el[fields.click]) ? el[fields.click] : function () {}
|
11985
11982
|
;
|
11986
11983
|
$actions.append($('<button/>', {
|
11987
11984
|
html: icon + text,
|
11988
11985
|
'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
|
11989
11986
|
class: className.button + ' ' + cls,
|
11990
|
-
|
11991
|
-
|
11992
|
-
|
11987
|
+
on: {
|
11988
|
+
click: function () {
|
11989
|
+
if (click.call(element, $module) === false) {
|
11990
|
+
return;
|
11991
|
+
}
|
11992
|
+
module.hide();
|
11993
11993
|
}
|
11994
|
-
module.hide();
|
11995
11994
|
}
|
11996
11995
|
}));
|
11997
11996
|
});
|
@@ -12137,7 +12136,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12137
12136
|
keyCode = event.which
|
12138
12137
|
;
|
12139
12138
|
if (keyCode === settings.keys.tab && event.shiftKey) {
|
12140
|
-
$inputs.last().focus
|
12139
|
+
$inputs.last().trigger('focus');
|
12141
12140
|
event.preventDefault();
|
12142
12141
|
}
|
12143
12142
|
},
|
@@ -12146,7 +12145,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12146
12145
|
keyCode = event.which
|
12147
12146
|
;
|
12148
12147
|
if (keyCode === settings.keys.tab && !event.shiftKey) {
|
12149
|
-
$inputs.first().focus
|
12148
|
+
$inputs.first().trigger('focus');
|
12150
12149
|
event.preventDefault();
|
12151
12150
|
}
|
12152
12151
|
}
|
@@ -12426,7 +12425,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12426
12425
|
var
|
12427
12426
|
$toggle = $(selector)
|
12428
12427
|
;
|
12429
|
-
event =
|
12428
|
+
event = isFunction(module[event])
|
12430
12429
|
? module[event]
|
12431
12430
|
: module.toggle
|
12432
12431
|
;
|
@@ -12442,7 +12441,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12442
12441
|
},
|
12443
12442
|
|
12444
12443
|
show: function(callback) {
|
12445
|
-
callback =
|
12444
|
+
callback = isFunction(callback)
|
12446
12445
|
? callback
|
12447
12446
|
: function(){}
|
12448
12447
|
;
|
@@ -12481,7 +12480,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12481
12480
|
},
|
12482
12481
|
|
12483
12482
|
hide: function(callback) {
|
12484
|
-
callback =
|
12483
|
+
callback = isFunction(callback)
|
12485
12484
|
? callback
|
12486
12485
|
: function(){}
|
12487
12486
|
;
|
@@ -12495,7 +12494,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12495
12494
|
module.refreshFlyouts();
|
12496
12495
|
module.pullPage(function() {
|
12497
12496
|
callback.call(element);
|
12498
|
-
if(
|
12497
|
+
if(isFunction(settings.onHidden)) {
|
12499
12498
|
settings.onHidden.call(element);
|
12500
12499
|
}
|
12501
12500
|
module.restore.focus();
|
@@ -12547,7 +12546,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12547
12546
|
dim,
|
12548
12547
|
transitionEnd
|
12549
12548
|
;
|
12550
|
-
callback =
|
12549
|
+
callback = isFunction(callback)
|
12551
12550
|
? callback
|
12552
12551
|
: function(){}
|
12553
12552
|
;
|
@@ -12585,7 +12584,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12585
12584
|
animate,
|
12586
12585
|
transitionEnd
|
12587
12586
|
;
|
12588
|
-
callback =
|
12587
|
+
callback = isFunction(callback)
|
12589
12588
|
? callback
|
12590
12589
|
: function(){}
|
12591
12590
|
;
|
@@ -12656,7 +12655,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12656
12655
|
: ($inputs.length > 1 ? $inputs.filter(':not(i.close)') : $inputs).first()
|
12657
12656
|
;
|
12658
12657
|
if($input.length > 0) {
|
12659
|
-
$input.focus
|
12658
|
+
$input.trigger('focus');
|
12660
12659
|
}
|
12661
12660
|
},
|
12662
12661
|
dimmerStyles: function() {
|
@@ -12825,7 +12824,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12825
12824
|
inCurrentFlyout = $activeElement.closest($module).length > 0
|
12826
12825
|
;
|
12827
12826
|
if(!inCurrentFlyout) {
|
12828
|
-
$focusedElement = $(document.activeElement).blur
|
12827
|
+
$focusedElement = $(document.activeElement).trigger('blur');
|
12829
12828
|
}
|
12830
12829
|
},
|
12831
12830
|
bodyMargin: function() {
|
@@ -12925,7 +12924,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
12925
12924
|
restore: {
|
12926
12925
|
focus: function() {
|
12927
12926
|
if($focusedElement && $focusedElement.length > 0 && settings.restoreFocus) {
|
12928
|
-
$focusedElement.focus
|
12927
|
+
$focusedElement.trigger('focus');
|
12929
12928
|
}
|
12930
12929
|
},
|
12931
12930
|
bodyMargin: function() {
|
@@ -13114,7 +13113,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
13114
13113
|
}
|
13115
13114
|
});
|
13116
13115
|
}
|
13117
|
-
if (
|
13116
|
+
if ( isFunction( found ) ) {
|
13118
13117
|
response = found.apply(context, passedArguments);
|
13119
13118
|
}
|
13120
13119
|
else if(found !== undefined) {
|
@@ -13136,7 +13135,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
13136
13135
|
|
13137
13136
|
if(methodInvoked) {
|
13138
13137
|
if(instance === undefined) {
|
13139
|
-
if (
|
13138
|
+
if (isFunction(settings.templates[query])) {
|
13140
13139
|
settings.autoShow = true;
|
13141
13140
|
settings.className.flyout = settings.className.template;
|
13142
13141
|
settings = $.extend(true, {}, settings, settings.templates[query].apply(module ,queryArguments));
|
@@ -13149,7 +13148,7 @@ $.flyout = $.fn.flyout = function(parameters) {
|
|
13149
13148
|
}
|
13150
13149
|
module.initialize();
|
13151
13150
|
}
|
13152
|
-
if (
|
13151
|
+
if (!isFunction(settings.templates[query])) {
|
13153
13152
|
module.invoke(query);
|
13154
13153
|
}
|
13155
13154
|
}
|
@@ -13299,7 +13298,7 @@ $.fn.flyout.settings.templates = {
|
|
13299
13298
|
title: ''
|
13300
13299
|
}, queryArguments[0]);
|
13301
13300
|
} else {
|
13302
|
-
if(
|
13301
|
+
if(!isFunction(queryArguments[queryArguments.length-1])) {
|
13303
13302
|
queryArguments.push(function() {});
|
13304
13303
|
}
|
13305
13304
|
return {
|
@@ -13377,7 +13376,7 @@ $.fn.flyout.settings.templates = {
|
|
13377
13376
|
})( jQuery, window, document );
|
13378
13377
|
|
13379
13378
|
/*!
|
13380
|
-
* # Fomantic-UI 2.9.1-beta.
|
13379
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Modal
|
13381
13380
|
* https://github.com/fomantic/Fomantic-UI/
|
13382
13381
|
*
|
13383
13382
|
*
|
@@ -13390,9 +13389,9 @@ $.fn.flyout.settings.templates = {
|
|
13390
13389
|
|
13391
13390
|
'use strict';
|
13392
13391
|
|
13393
|
-
|
13392
|
+
function isFunction(obj) {
|
13394
13393
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
13395
|
-
}
|
13394
|
+
}
|
13396
13395
|
|
13397
13396
|
window = (typeof window != 'undefined' && window.Math == Math)
|
13398
13397
|
? window
|
@@ -13479,7 +13478,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13479
13478
|
module.create.id();
|
13480
13479
|
if(!isModalComponent) {
|
13481
13480
|
module.create.modal();
|
13482
|
-
if(
|
13481
|
+
if(!isFunction(settings.onHidden)) {
|
13483
13482
|
settings.onHidden = function () {
|
13484
13483
|
module.destroy();
|
13485
13484
|
$module.remove();
|
@@ -13504,17 +13503,19 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13504
13503
|
var icon = el[fields.icon] ? '<i '+(el[fields.text] ? 'aria-hidden="true"' : '')+' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
|
13505
13504
|
text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
|
13506
13505
|
cls = module.helpers.deQuote(el[fields.class] || ''),
|
13507
|
-
click = el[fields.click] &&
|
13506
|
+
click = el[fields.click] && isFunction(el[fields.click]) ? el[fields.click] : function () {};
|
13508
13507
|
$actions.append($('<button/>', {
|
13509
13508
|
html: icon + text,
|
13510
13509
|
'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
|
13511
13510
|
class: className.button + ' ' + cls,
|
13512
|
-
|
13513
|
-
|
13514
|
-
|
13515
|
-
|
13511
|
+
on: {
|
13512
|
+
click: function () {
|
13513
|
+
var button = $(this);
|
13514
|
+
if (button.is(selector.approve) || button.is(selector.deny) || click.call(element, $module) === false) {
|
13515
|
+
return;
|
13516
|
+
}
|
13517
|
+
module.hide();
|
13516
13518
|
}
|
13517
|
-
module.hide();
|
13518
13519
|
}
|
13519
13520
|
}));
|
13520
13521
|
});
|
@@ -13677,7 +13678,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13677
13678
|
var
|
13678
13679
|
$toggle = $(selector)
|
13679
13680
|
;
|
13680
|
-
event =
|
13681
|
+
event = isFunction(module[event])
|
13681
13682
|
? module[event]
|
13682
13683
|
: module.toggle
|
13683
13684
|
;
|
@@ -13775,7 +13776,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13775
13776
|
keyCode = event.which
|
13776
13777
|
;
|
13777
13778
|
if (keyCode === settings.keys.tab && event.shiftKey) {
|
13778
|
-
$inputs.last().focus
|
13779
|
+
$inputs.last().trigger('focus');
|
13779
13780
|
event.preventDefault();
|
13780
13781
|
}
|
13781
13782
|
},
|
@@ -13784,7 +13785,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13784
13785
|
keyCode = event.which
|
13785
13786
|
;
|
13786
13787
|
if (keyCode === settings.keys.tab && !event.shiftKey) {
|
13787
|
-
$inputs.first().focus
|
13788
|
+
$inputs.first().trigger('focus');
|
13788
13789
|
event.preventDefault();
|
13789
13790
|
}
|
13790
13791
|
}
|
@@ -13872,7 +13873,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13872
13873
|
},
|
13873
13874
|
|
13874
13875
|
show: function(callback) {
|
13875
|
-
callback =
|
13876
|
+
callback = isFunction(callback)
|
13876
13877
|
? callback
|
13877
13878
|
: function(){}
|
13878
13879
|
;
|
@@ -13884,7 +13885,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13884
13885
|
},
|
13885
13886
|
|
13886
13887
|
hide: function(callback) {
|
13887
|
-
callback =
|
13888
|
+
callback = isFunction(callback)
|
13888
13889
|
? callback
|
13889
13890
|
: function(){}
|
13890
13891
|
;
|
@@ -13893,7 +13894,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13893
13894
|
},
|
13894
13895
|
|
13895
13896
|
showModal: function(callback) {
|
13896
|
-
callback =
|
13897
|
+
callback = isFunction(callback)
|
13897
13898
|
? callback
|
13898
13899
|
: function(){}
|
13899
13900
|
;
|
@@ -13975,7 +13976,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
13975
13976
|
var
|
13976
13977
|
$previousModal = $otherModals.filter('.' + className.active).last()
|
13977
13978
|
;
|
13978
|
-
callback =
|
13979
|
+
callback = isFunction(callback)
|
13979
13980
|
? callback
|
13980
13981
|
: function(){}
|
13981
13982
|
;
|
@@ -14019,7 +14020,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14019
14020
|
$previousModal.find(selector.dimmer).removeClass('active');
|
14020
14021
|
}
|
14021
14022
|
}
|
14022
|
-
if(
|
14023
|
+
if(isFunction(settings.onHidden)) {
|
14023
14024
|
settings.onHidden.call(element);
|
14024
14025
|
}
|
14025
14026
|
module.remove.dimmerStyles();
|
@@ -14071,7 +14072,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14071
14072
|
var
|
14072
14073
|
$visibleModals = $allModals.filter('.' + className.active + ', .' + className.animating)
|
14073
14074
|
;
|
14074
|
-
callback =
|
14075
|
+
callback = isFunction(callback)
|
14075
14076
|
? callback
|
14076
14077
|
: function(){}
|
14077
14078
|
;
|
@@ -14095,7 +14096,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14095
14096
|
var
|
14096
14097
|
$visibleModals = $otherModals.filter('.' + className.active + ', .' + className.animating)
|
14097
14098
|
;
|
14098
|
-
callback =
|
14099
|
+
callback = isFunction(callback)
|
14099
14100
|
? callback
|
14100
14101
|
: function(){}
|
14101
14102
|
;
|
@@ -14133,7 +14134,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14133
14134
|
inCurrentModal = $activeElement.closest($module).length > 0
|
14134
14135
|
;
|
14135
14136
|
if(!inCurrentModal) {
|
14136
|
-
$focusedElement = $(document.activeElement).blur
|
14137
|
+
$focusedElement = $(document.activeElement).trigger('blur');
|
14137
14138
|
}
|
14138
14139
|
},
|
14139
14140
|
bodyMargin: function() {
|
@@ -14147,7 +14148,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14147
14148
|
restore: {
|
14148
14149
|
focus: function() {
|
14149
14150
|
if($focusedElement && $focusedElement.length > 0 && settings.restoreFocus) {
|
14150
|
-
$focusedElement.focus
|
14151
|
+
$focusedElement.trigger('focus');
|
14151
14152
|
}
|
14152
14153
|
},
|
14153
14154
|
bodyMargin: function() {
|
@@ -14371,7 +14372,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14371
14372
|
: ($inputs.length > 1 ? $inputs.filter(':not(i.close)') : $inputs).first()
|
14372
14373
|
;
|
14373
14374
|
if($input.length > 0) {
|
14374
|
-
$input.focus
|
14375
|
+
$input.trigger('focus');
|
14375
14376
|
}
|
14376
14377
|
},
|
14377
14378
|
bodyMargin: function() {
|
@@ -14471,7 +14472,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14471
14472
|
else if(!$module.hasClass('bottom')) {
|
14472
14473
|
module.debug('Modal is taller than page content, resizing page height');
|
14473
14474
|
$context
|
14474
|
-
.css('height', module.cache.height + (settings.padding * 2) )
|
14475
|
+
.css('height', module.cache.height + (settings.padding * 2) + 'px')
|
14475
14476
|
;
|
14476
14477
|
}
|
14477
14478
|
},
|
@@ -14650,7 +14651,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14650
14651
|
}
|
14651
14652
|
});
|
14652
14653
|
}
|
14653
|
-
if (
|
14654
|
+
if ( isFunction( found ) ) {
|
14654
14655
|
response = found.apply(context, passedArguments);
|
14655
14656
|
}
|
14656
14657
|
else if(found !== undefined) {
|
@@ -14671,7 +14672,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14671
14672
|
|
14672
14673
|
if(methodInvoked) {
|
14673
14674
|
if(instance === undefined) {
|
14674
|
-
if (
|
14675
|
+
if (isFunction(settings.templates[query])) {
|
14675
14676
|
settings.autoShow = true;
|
14676
14677
|
settings.className.modal = settings.className.template;
|
14677
14678
|
settings = $.extend(true, {}, settings, settings.templates[query].apply(module ,queryArguments));
|
@@ -14684,7 +14685,7 @@ $.modal = $.fn.modal = function(parameters) {
|
|
14684
14685
|
}
|
14685
14686
|
module.initialize();
|
14686
14687
|
}
|
14687
|
-
if (
|
14688
|
+
if (!isFunction(settings.templates[query])) {
|
14688
14689
|
module.invoke(query);
|
14689
14690
|
}
|
14690
14691
|
}
|
@@ -14849,7 +14850,7 @@ $.fn.modal.settings.templates = {
|
|
14849
14850
|
title: ''
|
14850
14851
|
}, queryArguments[0]);
|
14851
14852
|
} else {
|
14852
|
-
if(
|
14853
|
+
if(!isFunction(queryArguments[queryArguments.length-1])) {
|
14853
14854
|
queryArguments.push(function() {});
|
14854
14855
|
}
|
14855
14856
|
return {
|
@@ -14934,7 +14935,7 @@ $.fn.modal.settings.templates = {
|
|
14934
14935
|
})( jQuery, window, document );
|
14935
14936
|
|
14936
14937
|
/*!
|
14937
|
-
* # Fomantic-UI 2.9.1-beta.
|
14938
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Nag
|
14938
14939
|
* https://github.com/fomantic/Fomantic-UI/
|
14939
14940
|
*
|
14940
14941
|
*
|
@@ -14947,9 +14948,9 @@ $.fn.modal.settings.templates = {
|
|
14947
14948
|
|
14948
14949
|
'use strict';
|
14949
14950
|
|
14950
|
-
|
14951
|
+
function isFunction(obj) {
|
14951
14952
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
14952
|
-
}
|
14953
|
+
}
|
14953
14954
|
|
14954
14955
|
window = (typeof window != 'undefined' && window.Math == Math)
|
14955
14956
|
? window
|
@@ -15370,7 +15371,7 @@ $.fn.nag = function(parameters) {
|
|
15370
15371
|
}
|
15371
15372
|
});
|
15372
15373
|
}
|
15373
|
-
if (
|
15374
|
+
if ( isFunction( found ) ) {
|
15374
15375
|
response = found.apply(context, passedArguments);
|
15375
15376
|
}
|
15376
15377
|
else if(found !== undefined) {
|
@@ -15488,15 +15489,15 @@ $.fn.nag.settings = {
|
|
15488
15489
|
|
15489
15490
|
// Adds easing
|
15490
15491
|
$.extend( $.easing, {
|
15491
|
-
easeOutQuad: function (x
|
15492
|
-
return -
|
15492
|
+
easeOutQuad: function (x) {
|
15493
|
+
return 1 - (1 - x) * (1 - x);
|
15493
15494
|
}
|
15494
15495
|
});
|
15495
15496
|
|
15496
15497
|
})( jQuery, window, document );
|
15497
15498
|
|
15498
15499
|
/*!
|
15499
|
-
* # Fomantic-UI 2.9.1-beta.
|
15500
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Popup
|
15500
15501
|
* https://github.com/fomantic/Fomantic-UI/
|
15501
15502
|
*
|
15502
15503
|
*
|
@@ -15509,9 +15510,9 @@ $.extend( $.easing, {
|
|
15509
15510
|
|
15510
15511
|
'use strict';
|
15511
15512
|
|
15512
|
-
|
15513
|
+
function isFunction(obj) {
|
15513
15514
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
15514
|
-
}
|
15515
|
+
}
|
15515
15516
|
|
15516
15517
|
window = (typeof window != 'undefined' && window.Math == Math)
|
15517
15518
|
? window
|
@@ -15926,7 +15927,7 @@ $.fn.popup = function(parameters) {
|
|
15926
15927
|
},
|
15927
15928
|
animate: {
|
15928
15929
|
show: function(callback) {
|
15929
|
-
callback =
|
15930
|
+
callback = isFunction(callback) ? callback : function(){};
|
15930
15931
|
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
15931
15932
|
module.set.visible();
|
15932
15933
|
$popup
|
@@ -15950,7 +15951,7 @@ $.fn.popup = function(parameters) {
|
|
15950
15951
|
}
|
15951
15952
|
},
|
15952
15953
|
hide: function(callback) {
|
15953
|
-
callback =
|
15954
|
+
callback = isFunction(callback) ? callback : function(){};
|
15954
15955
|
module.debug('Hiding pop-up');
|
15955
15956
|
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
15956
15957
|
$popup
|
@@ -16008,16 +16009,16 @@ $.fn.popup = function(parameters) {
|
|
16008
16009
|
var
|
16009
16010
|
$popupOffsetParent = module.get.offsetParent($popup),
|
16010
16011
|
targetElement = $target[0],
|
16011
|
-
|
16012
|
+
isWindowEl = ($boundary[0] == window),
|
16012
16013
|
targetOffset = $target.offset(),
|
16013
16014
|
parentOffset = settings.inline || (settings.popup && settings.movePopup)
|
16014
16015
|
? $target.offsetParent().offset()
|
16015
16016
|
: { top: 0, left: 0 },
|
16016
|
-
screenPosition = (
|
16017
|
+
screenPosition = (isWindowEl)
|
16017
16018
|
? { top: 0, left: 0 }
|
16018
16019
|
: $boundary.offset(),
|
16019
16020
|
calculations = {},
|
16020
|
-
scroll = (
|
16021
|
+
scroll = (isWindowEl)
|
16021
16022
|
? { top: $window.scrollTop(), left: $window.scrollLeft() }
|
16022
16023
|
: { top: 0, left: 0},
|
16023
16024
|
screen
|
@@ -16781,7 +16782,7 @@ $.fn.popup = function(parameters) {
|
|
16781
16782
|
}
|
16782
16783
|
});
|
16783
16784
|
}
|
16784
|
-
if (
|
16785
|
+
if ( isFunction( found ) ) {
|
16785
16786
|
response = found.apply(context, passedArguments);
|
16786
16787
|
}
|
16787
16788
|
else if(found !== undefined) {
|
@@ -17032,7 +17033,7 @@ $.fn.popup.settings = {
|
|
17032
17033
|
})( jQuery, window, document );
|
17033
17034
|
|
17034
17035
|
/*!
|
17035
|
-
* # Fomantic-UI 2.9.1-beta.
|
17036
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Progress
|
17036
17037
|
* https://github.com/fomantic/Fomantic-UI/
|
17037
17038
|
*
|
17038
17039
|
*
|
@@ -17045,9 +17046,9 @@ $.fn.popup.settings = {
|
|
17045
17046
|
|
17046
17047
|
'use strict';
|
17047
17048
|
|
17048
|
-
|
17049
|
+
function isFunction(obj) {
|
17049
17050
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
17050
|
-
}
|
17051
|
+
}
|
17051
17052
|
|
17052
17053
|
window = (typeof window != 'undefined' && window.Math == Math)
|
17053
17054
|
? window
|
@@ -17508,10 +17509,10 @@ $.fn.progress = function(parameters) {
|
|
17508
17509
|
values.forEach(function(_, index) {
|
17509
17510
|
var $bar = $($bars[index]);
|
17510
17511
|
$bar.css({
|
17511
|
-
borderTopLeftRadius: index == firstNonZeroIndex ? '' : 0,
|
17512
|
-
borderBottomLeftRadius: index == firstNonZeroIndex ? '' : 0,
|
17513
|
-
borderTopRightRadius: index == lastNonZeroIndex ? '' : 0,
|
17514
|
-
borderBottomRightRadius: index == lastNonZeroIndex ? '' : 0
|
17512
|
+
borderTopLeftRadius: index == firstNonZeroIndex ? '' : '0',
|
17513
|
+
borderBottomLeftRadius: index == firstNonZeroIndex ? '' : '0',
|
17514
|
+
borderTopRightRadius: index == lastNonZeroIndex ? '' : '0',
|
17515
|
+
borderBottomRightRadius: index == lastNonZeroIndex ? '' : '0'
|
17515
17516
|
});
|
17516
17517
|
});
|
17517
17518
|
$module
|
@@ -17939,7 +17940,7 @@ $.fn.progress = function(parameters) {
|
|
17939
17940
|
}
|
17940
17941
|
});
|
17941
17942
|
}
|
17942
|
-
if (
|
17943
|
+
if ( isFunction( found ) ) {
|
17943
17944
|
response = found.apply(context, passedArguments);
|
17944
17945
|
}
|
17945
17946
|
else if(found !== undefined) {
|
@@ -18069,7 +18070,7 @@ $.fn.progress.settings = {
|
|
18069
18070
|
})( jQuery, window, document );
|
18070
18071
|
|
18071
18072
|
/*!
|
18072
|
-
* # Fomantic-UI 2.9.1-beta.
|
18073
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Slider
|
18073
18074
|
* https://github.com/fomantic/Fomantic-UI/
|
18074
18075
|
*
|
18075
18076
|
*
|
@@ -18082,6 +18083,10 @@ $.fn.progress.settings = {
|
|
18082
18083
|
|
18083
18084
|
"use strict";
|
18084
18085
|
|
18086
|
+
function isFunction(obj) {
|
18087
|
+
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
18088
|
+
}
|
18089
|
+
|
18085
18090
|
window = (typeof window != 'undefined' && window.Math == Math)
|
18086
18091
|
? window
|
18087
18092
|
: (typeof self != 'undefined' && self.Math == Math)
|
@@ -18093,6 +18098,7 @@ $.fn.slider = function(parameters) {
|
|
18093
18098
|
|
18094
18099
|
var
|
18095
18100
|
$allModules = $(this),
|
18101
|
+
$document = $(document),
|
18096
18102
|
$window = $(window),
|
18097
18103
|
|
18098
18104
|
moduleSelector = $allModules.selector || '',
|
@@ -18306,7 +18312,7 @@ $.fn.slider = function(parameters) {
|
|
18306
18312
|
$module.on('keydown' + eventNamespace, module.event.keydown);
|
18307
18313
|
},
|
18308
18314
|
globalKeyboardEvents: function() {
|
18309
|
-
$
|
18315
|
+
$document.on('keydown' + eventNamespace + documentEventID, module.event.activateFocus);
|
18310
18316
|
},
|
18311
18317
|
mouseEvents: function() {
|
18312
18318
|
module.verbose('Binding mouse and touch events');
|
@@ -18334,8 +18340,8 @@ $.fn.slider = function(parameters) {
|
|
18334
18340
|
slidingEvents: function() {
|
18335
18341
|
// these don't need the identifier because we only ever want one of them to be registered with document
|
18336
18342
|
module.verbose('Binding page wide events while handle is being draged');
|
18337
|
-
$
|
18338
|
-
$
|
18343
|
+
$document.on('mousemove' + eventNamespace, module.event.move);
|
18344
|
+
$document.on('mouseup' + eventNamespace, module.event.up);
|
18339
18345
|
},
|
18340
18346
|
windowEvents: function() {
|
18341
18347
|
$window.on('resize' + eventNamespace, module.event.resize);
|
@@ -18355,12 +18361,12 @@ $.fn.slider = function(parameters) {
|
|
18355
18361
|
.off('touchcancel' + eventNamespace);
|
18356
18362
|
$module.off('keydown' + eventNamespace);
|
18357
18363
|
$module.off('focusout' + eventNamespace);
|
18358
|
-
$
|
18364
|
+
$document.off('keydown' + eventNamespace + documentEventID, module.event.activateFocus);
|
18359
18365
|
$window.off('resize' + eventNamespace);
|
18360
18366
|
},
|
18361
18367
|
slidingEvents: function() {
|
18362
|
-
$
|
18363
|
-
$
|
18368
|
+
$document.off('mousemove' + eventNamespace);
|
18369
|
+
$document.off('mouseup' + eventNamespace);
|
18364
18370
|
},
|
18365
18371
|
},
|
18366
18372
|
|
@@ -18476,7 +18482,7 @@ $.fn.slider = function(parameters) {
|
|
18476
18482
|
$currThumb = undefined;
|
18477
18483
|
}
|
18478
18484
|
if(module.is.focused()) {
|
18479
|
-
$
|
18485
|
+
$document.trigger(event);
|
18480
18486
|
}
|
18481
18487
|
if(first || module.is.focused()) {
|
18482
18488
|
var step = module.determine.keyMovement(event);
|
@@ -18503,7 +18509,7 @@ $.fn.slider = function(parameters) {
|
|
18503
18509
|
if(!module.is.focused() && module.is.hover() && module.determine.keyMovement(event) != NO_STEP) {
|
18504
18510
|
event.preventDefault();
|
18505
18511
|
module.event.keydown(event, true);
|
18506
|
-
$module.focus
|
18512
|
+
$module.trigger('focus');
|
18507
18513
|
}
|
18508
18514
|
},
|
18509
18515
|
resize: function(_event) {
|
@@ -18727,9 +18733,9 @@ $.fn.slider = function(parameters) {
|
|
18727
18733
|
},
|
18728
18734
|
gapRatio: function() {
|
18729
18735
|
var gapRatio = 1;
|
18730
|
-
|
18736
|
+
|
18731
18737
|
if( settings.autoAdjustLabels ) {
|
18732
|
-
var
|
18738
|
+
var
|
18733
18739
|
numLabels = module.get.numLabels(),
|
18734
18740
|
trackLength = module.get.trackLength(),
|
18735
18741
|
gapCounter = 1
|
@@ -19306,13 +19312,13 @@ $.fn.slider = function(parameters) {
|
|
19306
19312
|
}
|
19307
19313
|
});
|
19308
19314
|
}
|
19309
|
-
if (
|
19315
|
+
if ( isFunction( found ) ) {
|
19310
19316
|
response = found.apply(context, passedArguments);
|
19311
19317
|
}
|
19312
19318
|
else if(found !== undefined) {
|
19313
19319
|
response = found;
|
19314
19320
|
}
|
19315
|
-
if(
|
19321
|
+
if(Array.isArray(returnedValue)) {
|
19316
19322
|
returnedValue.push(response);
|
19317
19323
|
}
|
19318
19324
|
else if(returnedValue !== undefined) {
|
@@ -19423,7 +19429,7 @@ $.fn.slider.settings = {
|
|
19423
19429
|
})( jQuery, window, document );
|
19424
19430
|
|
19425
19431
|
/*!
|
19426
|
-
* # Fomantic-UI 2.9.1-beta.
|
19432
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Rating
|
19427
19433
|
* https://github.com/fomantic/Fomantic-UI/
|
19428
19434
|
*
|
19429
19435
|
*
|
@@ -19436,9 +19442,9 @@ $.fn.slider.settings = {
|
|
19436
19442
|
|
19437
19443
|
'use strict';
|
19438
19444
|
|
19439
|
-
|
19445
|
+
function isFunction(obj) {
|
19440
19446
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
19441
|
-
}
|
19447
|
+
}
|
19442
19448
|
|
19443
19449
|
window = (typeof window != 'undefined' && window.Math == Math)
|
19444
19450
|
? window
|
@@ -19871,7 +19877,7 @@ $.fn.rating = function(parameters) {
|
|
19871
19877
|
}
|
19872
19878
|
});
|
19873
19879
|
}
|
19874
|
-
if (
|
19880
|
+
if ( isFunction( found ) ) {
|
19875
19881
|
response = found.apply(context, passedArguments);
|
19876
19882
|
}
|
19877
19883
|
else if(found !== undefined) {
|
@@ -19982,7 +19988,7 @@ $.fn.rating.settings = {
|
|
19982
19988
|
})( jQuery, window, document );
|
19983
19989
|
|
19984
19990
|
/*!
|
19985
|
-
* # Fomantic-UI 2.9.1-beta.
|
19991
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Search
|
19986
19992
|
* https://github.com/fomantic/Fomantic-UI/
|
19987
19993
|
*
|
19988
19994
|
*
|
@@ -19995,7 +20001,7 @@ $.fn.rating.settings = {
|
|
19995
20001
|
|
19996
20002
|
'use strict';
|
19997
20003
|
|
19998
|
-
|
20004
|
+
function isFunction(obj) {
|
19999
20005
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
20000
20006
|
};
|
20001
20007
|
|
@@ -20171,7 +20177,7 @@ $.fn.search = function(parameters) {
|
|
20171
20177
|
$module
|
20172
20178
|
.one('click.close' + eventNamespace, selector.results, function(event) {
|
20173
20179
|
if(module.is.inMessage(event) || disabledBubbled) {
|
20174
|
-
$prompt.focus
|
20180
|
+
$prompt.trigger('focus');
|
20175
20181
|
return;
|
20176
20182
|
}
|
20177
20183
|
disabledBubbled = false;
|
@@ -20211,7 +20217,7 @@ $.fn.search = function(parameters) {
|
|
20211
20217
|
result = $result.data(metadata.result) || module.get.result(value, results)
|
20212
20218
|
;
|
20213
20219
|
var oldValue = module.get.value();
|
20214
|
-
if(
|
20220
|
+
if( isFunction(settings.onSelect) ) {
|
20215
20221
|
if(settings.onSelect.call(element, result, results) === false) {
|
20216
20222
|
module.debug('Custom onSelect callback cancelled default select action');
|
20217
20223
|
disabledBubbled = true;
|
@@ -20278,7 +20284,7 @@ $.fn.search = function(parameters) {
|
|
20278
20284
|
if(keyCode == keys.escape) {
|
20279
20285
|
if(!module.is.visible()) {
|
20280
20286
|
module.verbose('Escape key pressed, blurring search field');
|
20281
|
-
$prompt.blur
|
20287
|
+
$prompt.trigger('blur');
|
20282
20288
|
} else {
|
20283
20289
|
module.hideResults();
|
20284
20290
|
}
|
@@ -20540,7 +20546,7 @@ $.fn.search = function(parameters) {
|
|
20540
20546
|
},
|
20541
20547
|
|
20542
20548
|
query: function(callback) {
|
20543
|
-
callback =
|
20549
|
+
callback = isFunction(callback)
|
20544
20550
|
? callback
|
20545
20551
|
: function(){}
|
20546
20552
|
;
|
@@ -20606,7 +20612,7 @@ $.fn.search = function(parameters) {
|
|
20606
20612
|
});
|
20607
20613
|
},
|
20608
20614
|
remote: function(searchTerm, callback) {
|
20609
|
-
callback =
|
20615
|
+
callback = isFunction(callback)
|
20610
20616
|
? callback
|
20611
20617
|
: function(){}
|
20612
20618
|
;
|
@@ -20939,7 +20945,7 @@ $.fn.search = function(parameters) {
|
|
20939
20945
|
},
|
20940
20946
|
|
20941
20947
|
addResults: function(html) {
|
20942
|
-
if(
|
20948
|
+
if( isFunction(settings.onResultsAdd) ) {
|
20943
20949
|
if( settings.onResultsAdd.call($results, html) === false ) {
|
20944
20950
|
module.debug('onResultsAdd callback cancelled default action');
|
20945
20951
|
return false;
|
@@ -20963,7 +20969,7 @@ $.fn.search = function(parameters) {
|
|
20963
20969
|
},
|
20964
20970
|
|
20965
20971
|
showResults: function(callback) {
|
20966
|
-
callback =
|
20972
|
+
callback = isFunction(callback)
|
20967
20973
|
? callback
|
20968
20974
|
: function(){}
|
20969
20975
|
;
|
@@ -21002,7 +21008,7 @@ $.fn.search = function(parameters) {
|
|
21002
21008
|
}
|
21003
21009
|
},
|
21004
21010
|
hideResults: function(callback) {
|
21005
|
-
callback =
|
21011
|
+
callback = isFunction(callback)
|
21006
21012
|
? callback
|
21007
21013
|
: function(){}
|
21008
21014
|
;
|
@@ -21053,7 +21059,7 @@ $.fn.search = function(parameters) {
|
|
21053
21059
|
response[fields.results] = response[fields.results].slice(0, settings.maxResults);
|
21054
21060
|
}
|
21055
21061
|
}
|
21056
|
-
if(
|
21062
|
+
if(isFunction(template)) {
|
21057
21063
|
html = template(response, fields, settings.preserveHTML);
|
21058
21064
|
}
|
21059
21065
|
else {
|
@@ -21214,7 +21220,7 @@ $.fn.search = function(parameters) {
|
|
21214
21220
|
}
|
21215
21221
|
});
|
21216
21222
|
}
|
21217
|
-
if(
|
21223
|
+
if( isFunction( found ) ) {
|
21218
21224
|
response = found.apply(context, passedArguments);
|
21219
21225
|
}
|
21220
21226
|
else if(found !== undefined) {
|
@@ -21577,7 +21583,7 @@ $.extend($.easing, {
|
|
21577
21583
|
})( jQuery, window, document );
|
21578
21584
|
|
21579
21585
|
/*!
|
21580
|
-
* # Fomantic-UI 2.9.1-beta.
|
21586
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Shape
|
21581
21587
|
* https://github.com/fomantic/Fomantic-UI/
|
21582
21588
|
*
|
21583
21589
|
*
|
@@ -21590,9 +21596,9 @@ $.extend($.easing, {
|
|
21590
21596
|
|
21591
21597
|
'use strict';
|
21592
21598
|
|
21593
|
-
|
21599
|
+
function isFunction(obj) {
|
21594
21600
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
21595
|
-
}
|
21601
|
+
}
|
21596
21602
|
|
21597
21603
|
window = (typeof window != 'undefined' && window.Math == Math)
|
21598
21604
|
? window
|
@@ -22313,7 +22319,7 @@ $.fn.shape = function(parameters) {
|
|
22313
22319
|
}
|
22314
22320
|
});
|
22315
22321
|
}
|
22316
|
-
if (
|
22322
|
+
if ( isFunction( found ) ) {
|
22317
22323
|
response = found.apply(context, passedArguments);
|
22318
22324
|
}
|
22319
22325
|
else if(found !== undefined) {
|
@@ -22338,7 +22344,7 @@ $.fn.shape = function(parameters) {
|
|
22338
22344
|
}
|
22339
22345
|
var $inputs = $module.find('input');
|
22340
22346
|
if( $inputs.length > 0) {
|
22341
|
-
$inputs.blur
|
22347
|
+
$inputs.trigger('blur');
|
22342
22348
|
setTimeout(function(){
|
22343
22349
|
module.invoke(query);
|
22344
22350
|
}, 150);
|
@@ -22426,7 +22432,7 @@ $.fn.shape.settings = {
|
|
22426
22432
|
})( jQuery, window, document );
|
22427
22433
|
|
22428
22434
|
/*!
|
22429
|
-
* # Fomantic-UI 2.9.1-beta.
|
22435
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Sidebar
|
22430
22436
|
* https://github.com/fomantic/Fomantic-UI/
|
22431
22437
|
*
|
22432
22438
|
*
|
@@ -22439,9 +22445,9 @@ $.fn.shape.settings = {
|
|
22439
22445
|
|
22440
22446
|
'use strict';
|
22441
22447
|
|
22442
|
-
|
22448
|
+
function isFunction(obj) {
|
22443
22449
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
22444
|
-
}
|
22450
|
+
}
|
22445
22451
|
|
22446
22452
|
window = (typeof window != 'undefined' && window.Math == Math)
|
22447
22453
|
? window
|
@@ -22788,7 +22794,7 @@ $.fn.sidebar = function(parameters) {
|
|
22788
22794
|
var
|
22789
22795
|
$toggle = $(selector)
|
22790
22796
|
;
|
22791
|
-
event =
|
22797
|
+
event = isFunction(module[event])
|
22792
22798
|
? module[event]
|
22793
22799
|
: module.toggle
|
22794
22800
|
;
|
@@ -22819,7 +22825,7 @@ $.fn.sidebar = function(parameters) {
|
|
22819
22825
|
}
|
22820
22826
|
},
|
22821
22827
|
show: function(callback) {
|
22822
|
-
callback =
|
22828
|
+
callback = isFunction(callback)
|
22823
22829
|
? callback
|
22824
22830
|
: function(){}
|
22825
22831
|
;
|
@@ -22862,7 +22868,7 @@ $.fn.sidebar = function(parameters) {
|
|
22862
22868
|
},
|
22863
22869
|
|
22864
22870
|
hide: function(callback) {
|
22865
|
-
callback =
|
22871
|
+
callback = isFunction(callback)
|
22866
22872
|
? callback
|
22867
22873
|
: function(){}
|
22868
22874
|
;
|
@@ -22924,7 +22930,7 @@ $.fn.sidebar = function(parameters) {
|
|
22924
22930
|
dim,
|
22925
22931
|
transitionEnd
|
22926
22932
|
;
|
22927
|
-
callback =
|
22933
|
+
callback = isFunction(callback)
|
22928
22934
|
? callback
|
22929
22935
|
: function(){}
|
22930
22936
|
;
|
@@ -22970,7 +22976,7 @@ $.fn.sidebar = function(parameters) {
|
|
22970
22976
|
animate,
|
22971
22977
|
transitionEnd
|
22972
22978
|
;
|
22973
|
-
callback =
|
22979
|
+
callback = isFunction(callback)
|
22974
22980
|
? callback
|
22975
22981
|
: function(){}
|
22976
22982
|
;
|
@@ -23432,7 +23438,7 @@ $.fn.sidebar = function(parameters) {
|
|
23432
23438
|
}
|
23433
23439
|
});
|
23434
23440
|
}
|
23435
|
-
if (
|
23441
|
+
if ( isFunction( found ) ) {
|
23436
23442
|
response = found.apply(context, passedArguments);
|
23437
23443
|
}
|
23438
23444
|
else if(found !== undefined) {
|
@@ -23560,7 +23566,7 @@ $.fn.sidebar.settings = {
|
|
23560
23566
|
})( jQuery, window, document );
|
23561
23567
|
|
23562
23568
|
/*!
|
23563
|
-
* # Fomantic-UI 2.9.1-beta.
|
23569
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Sticky
|
23564
23570
|
* https://github.com/fomantic/Fomantic-UI/
|
23565
23571
|
*
|
23566
23572
|
*
|
@@ -23573,9 +23579,9 @@ $.fn.sidebar.settings = {
|
|
23573
23579
|
|
23574
23580
|
'use strict';
|
23575
23581
|
|
23576
|
-
|
23582
|
+
function isFunction(obj) {
|
23577
23583
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
23578
|
-
}
|
23584
|
+
}
|
23579
23585
|
|
23580
23586
|
window = (typeof window != 'undefined' && window.Math == Math)
|
23581
23587
|
? window
|
@@ -23587,6 +23593,7 @@ window = (typeof window != 'undefined' && window.Math == Math)
|
|
23587
23593
|
$.fn.sticky = function(parameters) {
|
23588
23594
|
var
|
23589
23595
|
$allModules = $(this),
|
23596
|
+
$document = $(document),
|
23590
23597
|
moduleSelector = $allModules.selector || '',
|
23591
23598
|
|
23592
23599
|
time = new Date().getTime(),
|
@@ -23614,7 +23621,7 @@ $.fn.sticky = function(parameters) {
|
|
23614
23621
|
|
23615
23622
|
$module = $(this),
|
23616
23623
|
$window = $(window),
|
23617
|
-
$scroll = [window,document].indexOf(settings.scrollContext) < 0 ? $
|
23624
|
+
$scroll = [window,document].indexOf(settings.scrollContext) < 0 ? $document.find(settings.scrollContext) : $(settings.scrollContext),
|
23618
23625
|
$container,
|
23619
23626
|
$context,
|
23620
23627
|
|
@@ -23700,7 +23707,7 @@ $.fn.sticky = function(parameters) {
|
|
23700
23707
|
|
23701
23708
|
determineContainer: function() {
|
23702
23709
|
if(settings.container) {
|
23703
|
-
$container = [window,document].indexOf(settings.container) < 0 ? $
|
23710
|
+
$container = [window,document].indexOf(settings.container) < 0 ? $document.find(settings.container) : $(settings.container);
|
23704
23711
|
}
|
23705
23712
|
else {
|
23706
23713
|
$container = $module.offsetParent();
|
@@ -23709,7 +23716,7 @@ $.fn.sticky = function(parameters) {
|
|
23709
23716
|
|
23710
23717
|
determineContext: function() {
|
23711
23718
|
if(settings.context) {
|
23712
|
-
$context = [window,document].indexOf(settings.context) < 0 ? $
|
23719
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context);
|
23713
23720
|
}
|
23714
23721
|
else {
|
23715
23722
|
$context = $container;
|
@@ -23991,13 +23998,13 @@ $.fn.sticky = function(parameters) {
|
|
23991
23998
|
if( module.is.top() ) {
|
23992
23999
|
$module
|
23993
24000
|
.css('bottom', '')
|
23994
|
-
.css('top', -scroll)
|
24001
|
+
.css('top', (-scroll) + 'px')
|
23995
24002
|
;
|
23996
24003
|
}
|
23997
24004
|
if( module.is.bottom() ) {
|
23998
24005
|
$module
|
23999
24006
|
.css('top', '')
|
24000
|
-
.css('bottom', scroll)
|
24007
|
+
.css('bottom', scroll + 'px')
|
24001
24008
|
;
|
24002
24009
|
}
|
24003
24010
|
},
|
@@ -24416,7 +24423,7 @@ $.fn.sticky = function(parameters) {
|
|
24416
24423
|
}
|
24417
24424
|
});
|
24418
24425
|
}
|
24419
|
-
if (
|
24426
|
+
if ( isFunction( found ) ) {
|
24420
24427
|
response = found.apply(context, passedArguments);
|
24421
24428
|
}
|
24422
24429
|
else if(found !== undefined) {
|
@@ -24529,7 +24536,7 @@ $.fn.sticky.settings = {
|
|
24529
24536
|
})( jQuery, window, document );
|
24530
24537
|
|
24531
24538
|
/*!
|
24532
|
-
* # Fomantic-UI 2.9.1-beta.
|
24539
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Tab
|
24533
24540
|
* https://github.com/fomantic/Fomantic-UI/
|
24534
24541
|
*
|
24535
24542
|
*
|
@@ -24542,12 +24549,12 @@ $.fn.sticky.settings = {
|
|
24542
24549
|
|
24543
24550
|
'use strict';
|
24544
24551
|
|
24545
|
-
|
24552
|
+
function isWindow(obj) {
|
24546
24553
|
return obj != null && obj === obj.window;
|
24547
|
-
}
|
24548
|
-
|
24554
|
+
}
|
24555
|
+
function isFunction(obj) {
|
24549
24556
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
24550
|
-
}
|
24557
|
+
}
|
24551
24558
|
|
24552
24559
|
window = (typeof window != 'undefined' && window.Math == Math)
|
24553
24560
|
? window
|
@@ -24560,10 +24567,10 @@ $.fn.tab = function(parameters) {
|
|
24560
24567
|
|
24561
24568
|
var
|
24562
24569
|
// use window context if none specified
|
24563
|
-
$allModules =
|
24570
|
+
$allModules = isFunction(this)
|
24564
24571
|
? $(window)
|
24565
24572
|
: $(this),
|
24566
|
-
|
24573
|
+
$document = $(document),
|
24567
24574
|
moduleSelector = $allModules.selector || '',
|
24568
24575
|
time = new Date().getTime(),
|
24569
24576
|
performance = [],
|
@@ -24665,7 +24672,7 @@ $.fn.tab = function(parameters) {
|
|
24665
24672
|
bind: {
|
24666
24673
|
events: function() {
|
24667
24674
|
// if using $.tab don't add events
|
24668
|
-
if(
|
24675
|
+
if( !isWindow( element ) ) {
|
24669
24676
|
module.debug('Attaching tab activation events to element', $module);
|
24670
24677
|
$module
|
24671
24678
|
.on('click' + eventNamespace, module.event.click)
|
@@ -24692,7 +24699,7 @@ $.fn.tab = function(parameters) {
|
|
24692
24699
|
module.verbose('Determined parent element for creating context', $context);
|
24693
24700
|
}
|
24694
24701
|
else if(settings.context) {
|
24695
|
-
$context = [window,document].indexOf(settings.context) < 0 ? $
|
24702
|
+
$context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context);
|
24696
24703
|
module.verbose('Using selector for tab context', settings.context, $context);
|
24697
24704
|
}
|
24698
24705
|
else {
|
@@ -24983,7 +24990,7 @@ $.fn.tab = function(parameters) {
|
|
24983
24990
|
;
|
24984
24991
|
if(scrollOffset !== false) {
|
24985
24992
|
module.debug('Forcing scroll to an in-page link in a hidden tab', scrollOffset, $element);
|
24986
|
-
$
|
24993
|
+
$document.scrollTop(scrollOffset);
|
24987
24994
|
}
|
24988
24995
|
},
|
24989
24996
|
|
@@ -25427,7 +25434,7 @@ $.fn.tab = function(parameters) {
|
|
25427
25434
|
}
|
25428
25435
|
});
|
25429
25436
|
}
|
25430
|
-
if (
|
25437
|
+
if ( isFunction( found ) ) {
|
25431
25438
|
response = found.apply(context, passedArguments);
|
25432
25439
|
}
|
25433
25440
|
else if(found !== undefined) {
|
@@ -25549,7 +25556,7 @@ $.fn.tab.settings = {
|
|
25549
25556
|
})( jQuery, window, document );
|
25550
25557
|
|
25551
25558
|
/*!
|
25552
|
-
* # Fomantic-UI 2.9.1-beta.
|
25559
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Toast
|
25553
25560
|
* https://github.com/fomantic/Fomantic-UI/
|
25554
25561
|
*
|
25555
25562
|
*
|
@@ -25562,9 +25569,9 @@ $.fn.tab.settings = {
|
|
25562
25569
|
|
25563
25570
|
'use strict';
|
25564
25571
|
|
25565
|
-
|
25572
|
+
function isFunction(obj) {
|
25566
25573
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
25567
|
-
}
|
25574
|
+
}
|
25568
25575
|
|
25569
25576
|
window = (typeof window != 'undefined' && window.Math == Math)
|
25570
25577
|
? window
|
@@ -25745,7 +25752,7 @@ $.toast = $.fn.toast = function(parameters) {
|
|
25745
25752
|
.addClass(settings.class + ' ' + className.toast)
|
25746
25753
|
.append($content)
|
25747
25754
|
;
|
25748
|
-
$toast.css('opacity', settings.opacity);
|
25755
|
+
$toast.css('opacity', String(settings.opacity));
|
25749
25756
|
if (settings.closeIcon) {
|
25750
25757
|
$close = $('<i/>', {class: className.close + ' ' + (typeof settings.closeIcon === 'string' ? settings.closeIcon : ''), role: 'button', tabindex: 0, 'aria-label': settings.text.close});
|
25751
25758
|
if($close.hasClass(className.left)) {
|
@@ -25793,17 +25800,19 @@ $.toast = $.fn.toast = function(parameters) {
|
|
25793
25800
|
var icon = el[fields.icon] ? '<i '+(el[fields.text] ? 'aria-hidden="true"' : '')+' class="' + module.helpers.deQuote(el[fields.icon]) + ' icon"></i>' : '',
|
25794
25801
|
text = module.helpers.escape(el[fields.text] || '', settings.preserveHTML),
|
25795
25802
|
cls = module.helpers.deQuote(el[fields.class] || ''),
|
25796
|
-
click = el[fields.click] &&
|
25803
|
+
click = el[fields.click] && isFunction(el[fields.click]) ? el[fields.click] : function () {};
|
25797
25804
|
$actions.append($('<button/>', {
|
25798
25805
|
html: icon + text,
|
25799
25806
|
'aria-label': (el[fields.text] || el[fields.icon] || '').replace(/<[^>]+(>|$)/g,''),
|
25800
25807
|
class: className.button + ' ' + cls,
|
25801
|
-
|
25802
|
-
|
25803
|
-
|
25804
|
-
|
25808
|
+
on: {
|
25809
|
+
click: function () {
|
25810
|
+
var $button = $(this);
|
25811
|
+
if ($button.is(selector.approve) || $button.is(selector.deny) || click.call(element, $module) === false) {
|
25812
|
+
return;
|
25813
|
+
}
|
25814
|
+
module.close();
|
25805
25815
|
}
|
25806
|
-
module.close();
|
25807
25816
|
}
|
25808
25817
|
}));
|
25809
25818
|
});
|
@@ -25932,7 +25941,7 @@ $.toast = $.fn.toast = function(parameters) {
|
|
25932
25941
|
|
25933
25942
|
animate: {
|
25934
25943
|
show: function(callback) {
|
25935
|
-
callback =
|
25944
|
+
callback = isFunction(callback) ? callback : function(){};
|
25936
25945
|
if(settings.transition && module.can.useElement('transition') && $module.transition('is supported')) {
|
25937
25946
|
module.set.visible();
|
25938
25947
|
$toastBox
|
@@ -25952,7 +25961,7 @@ $.toast = $.fn.toast = function(parameters) {
|
|
25952
25961
|
}
|
25953
25962
|
},
|
25954
25963
|
close: function(callback) {
|
25955
|
-
callback =
|
25964
|
+
callback = isFunction(callback) ? callback : function(){};
|
25956
25965
|
if(settings.transition && $.fn.transition !== undefined && $module.transition('is supported')) {
|
25957
25966
|
$toastBox
|
25958
25967
|
.transition({
|
@@ -25965,10 +25974,10 @@ $.toast = $.fn.toast = function(parameters) {
|
|
25965
25974
|
interval : 50,
|
25966
25975
|
|
25967
25976
|
onBeforeHide: function(callback){
|
25968
|
-
callback =
|
25977
|
+
callback = isFunction(callback)?callback : function(){};
|
25969
25978
|
if(settings.transition.closeEasing !== ''){
|
25970
25979
|
if($toastBox) {
|
25971
|
-
$toastBox.css('opacity', 0);
|
25980
|
+
$toastBox.css('opacity', '0');
|
25972
25981
|
$toastBox.wrap('<div/>').parent().hide(settings.transition.closeDuration, settings.transition.closeEasing, function () {
|
25973
25982
|
if ($toastBox) {
|
25974
25983
|
$toastBox.parent().remove();
|
@@ -26286,7 +26295,7 @@ $.toast = $.fn.toast = function(parameters) {
|
|
26286
26295
|
}
|
26287
26296
|
});
|
26288
26297
|
}
|
26289
|
-
if (
|
26298
|
+
if ( isFunction( found ) ) {
|
26290
26299
|
response = found.apply(context, passedArguments);
|
26291
26300
|
}
|
26292
26301
|
else if(found !== undefined) {
|
@@ -26456,16 +26465,17 @@ $.fn.toast.settings = {
|
|
26456
26465
|
};
|
26457
26466
|
|
26458
26467
|
$.extend( $.easing, {
|
26459
|
-
easeOutBounce: function (x
|
26460
|
-
|
26461
|
-
|
26462
|
-
|
26463
|
-
|
26464
|
-
|
26465
|
-
|
26466
|
-
|
26467
|
-
|
26468
|
-
|
26468
|
+
easeOutBounce: function (x) {
|
26469
|
+
var n1 = 7.5625, d1 = 2.75;
|
26470
|
+
if (x < 1 / d1) {
|
26471
|
+
return n1 * x * x;
|
26472
|
+
} else if (x < 2 / d1) {
|
26473
|
+
return n1 * (x -= 1.5 / d1) * x + 0.75;
|
26474
|
+
} else if (x < 2.5 / d1) {
|
26475
|
+
return n1 * (x -= 2.25 / d1) * x + 0.9375;
|
26476
|
+
} else {
|
26477
|
+
return n1 * (x -= 2.625 / d1) * x + 0.984375;
|
26478
|
+
}
|
26469
26479
|
},
|
26470
26480
|
easeOutCubic: function (t) {
|
26471
26481
|
return (--t)*t*t+1;
|
@@ -26476,7 +26486,7 @@ $.extend( $.easing, {
|
|
26476
26486
|
})( jQuery, window, document );
|
26477
26487
|
|
26478
26488
|
/*!
|
26479
|
-
* # Fomantic-UI 2.9.1-beta.
|
26489
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Transition
|
26480
26490
|
* https://github.com/fomantic/Fomantic-UI/
|
26481
26491
|
*
|
26482
26492
|
*
|
@@ -26489,9 +26499,9 @@ $.extend( $.easing, {
|
|
26489
26499
|
|
26490
26500
|
'use strict';
|
26491
26501
|
|
26492
|
-
|
26502
|
+
function isFunction(obj) {
|
26493
26503
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
26494
|
-
}
|
26504
|
+
}
|
26495
26505
|
|
26496
26506
|
window = (typeof window != 'undefined' && window.Math == Math)
|
26497
26507
|
? window
|
@@ -27469,7 +27479,7 @@ $.fn.transition = function() {
|
|
27469
27479
|
}
|
27470
27480
|
});
|
27471
27481
|
}
|
27472
|
-
if (
|
27482
|
+
if ( isFunction( found ) ) {
|
27473
27483
|
response = found.apply(context, passedArguments);
|
27474
27484
|
}
|
27475
27485
|
else if(found !== undefined) {
|
@@ -27591,7 +27601,7 @@ $.fn.transition.settings = {
|
|
27591
27601
|
})( jQuery, window, document );
|
27592
27602
|
|
27593
27603
|
/*!
|
27594
|
-
* # Fomantic-UI 2.9.1-beta.
|
27604
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - API
|
27595
27605
|
* https://github.com/fomantic/Fomantic-UI/
|
27596
27606
|
*
|
27597
27607
|
*
|
@@ -27604,9 +27614,12 @@ $.fn.transition.settings = {
|
|
27604
27614
|
|
27605
27615
|
'use strict';
|
27606
27616
|
|
27607
|
-
|
27608
|
-
|
27609
|
-
}
|
27617
|
+
function isWindow(obj) {
|
27618
|
+
return obj != null && obj === obj.window;
|
27619
|
+
}
|
27620
|
+
function isFunction(obj) {
|
27621
|
+
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
27622
|
+
}
|
27610
27623
|
|
27611
27624
|
window = (typeof window != 'undefined' && window.Math == Math)
|
27612
27625
|
? window
|
@@ -27619,7 +27632,7 @@ $.api = $.fn.api = function(parameters) {
|
|
27619
27632
|
|
27620
27633
|
var
|
27621
27634
|
// use window context if none specified
|
27622
|
-
$allModules =
|
27635
|
+
$allModules = isFunction(this)
|
27623
27636
|
? $(window)
|
27624
27637
|
: $(this),
|
27625
27638
|
moduleSelector = $allModules.selector || '',
|
@@ -27908,7 +27921,7 @@ $.api = $.fn.api = function(parameters) {
|
|
27908
27921
|
}
|
27909
27922
|
},
|
27910
27923
|
validResponse: function(response) {
|
27911
|
-
if( (!module.is.expectingJSON()) ||
|
27924
|
+
if( (!module.is.expectingJSON()) || !isFunction(settings.successTest) ) {
|
27912
27925
|
module.verbose('Response is not JSON, skipping validation', settings.successTest, response);
|
27913
27926
|
return true;
|
27914
27927
|
}
|
@@ -28131,7 +28144,7 @@ $.api = $.fn.api = function(parameters) {
|
|
28131
28144
|
context = this,
|
28132
28145
|
elapsedTime = (new Date().getTime() - requestStartTime),
|
28133
28146
|
timeLeft = (settings.loadingDuration - elapsedTime),
|
28134
|
-
translatedResponse = (
|
28147
|
+
translatedResponse = ( isFunction(settings.onResponse) )
|
28135
28148
|
? module.is.expectingJSON() && !settings.rawResponse
|
28136
28149
|
? settings.onResponse.call(context, $.extend(true, {}, response))
|
28137
28150
|
: settings.onResponse.call(context, response)
|
@@ -28275,7 +28288,7 @@ $.api = $.fn.api = function(parameters) {
|
|
28275
28288
|
;
|
28276
28289
|
|
28277
28290
|
if(responder) {
|
28278
|
-
if(
|
28291
|
+
if( isFunction(responder) ) {
|
28279
28292
|
module.debug('Using specified synchronous callback', responder);
|
28280
28293
|
response = responder.call(context, requestSettings);
|
28281
28294
|
}
|
@@ -28286,7 +28299,7 @@ $.api = $.fn.api = function(parameters) {
|
|
28286
28299
|
// simulating response
|
28287
28300
|
mockedXHR.resolveWith(context, [ response, textStatus, { responseText: response }]);
|
28288
28301
|
}
|
28289
|
-
else if(
|
28302
|
+
else if( isFunction(asyncResponder) ) {
|
28290
28303
|
asyncCallback = function(response) {
|
28291
28304
|
module.debug('Async callback returned response', response);
|
28292
28305
|
|
@@ -28417,7 +28430,7 @@ $.api = $.fn.api = function(parameters) {
|
|
28417
28430
|
var
|
28418
28431
|
data = {}
|
28419
28432
|
;
|
28420
|
-
if(
|
28433
|
+
if( !isWindow(element) ) {
|
28421
28434
|
if( module.is.input() ) {
|
28422
28435
|
data.value = $module.val();
|
28423
28436
|
}
|
@@ -28431,7 +28444,7 @@ $.api = $.fn.api = function(parameters) {
|
|
28431
28444
|
return data;
|
28432
28445
|
},
|
28433
28446
|
event: function() {
|
28434
|
-
if(
|
28447
|
+
if( isWindow(element) || settings.on == 'now' ) {
|
28435
28448
|
module.debug('API called without element, no events attached');
|
28436
28449
|
return false;
|
28437
28450
|
}
|
@@ -28638,7 +28651,7 @@ $.api = $.fn.api = function(parameters) {
|
|
28638
28651
|
}
|
28639
28652
|
});
|
28640
28653
|
}
|
28641
|
-
if (
|
28654
|
+
if ( isFunction( found ) ) {
|
28642
28655
|
response = found.apply(context, passedArguments);
|
28643
28656
|
}
|
28644
28657
|
else if(found !== undefined) {
|
@@ -28830,7 +28843,7 @@ $.api.settings = {
|
|
28830
28843
|
})( jQuery, window, document );
|
28831
28844
|
|
28832
28845
|
/*!
|
28833
|
-
* # Fomantic-UI 2.9.1-beta.
|
28846
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - State
|
28834
28847
|
* https://github.com/fomantic/Fomantic-UI/
|
28835
28848
|
*
|
28836
28849
|
*
|
@@ -28843,9 +28856,9 @@ $.api.settings = {
|
|
28843
28856
|
|
28844
28857
|
"use strict";
|
28845
28858
|
|
28846
|
-
|
28859
|
+
function isFunction(obj) {
|
28847
28860
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
28848
|
-
}
|
28861
|
+
}
|
28849
28862
|
|
28850
28863
|
window = (typeof window != 'undefined' && window.Math == Math)
|
28851
28864
|
? window
|
@@ -29387,7 +29400,7 @@ $.fn.state = function(parameters) {
|
|
29387
29400
|
}
|
29388
29401
|
});
|
29389
29402
|
}
|
29390
|
-
if (
|
29403
|
+
if ( isFunction( found ) ) {
|
29391
29404
|
response = found.apply(context, passedArguments);
|
29392
29405
|
}
|
29393
29406
|
else if(found !== undefined) {
|
@@ -29542,7 +29555,7 @@ $.fn.state.settings = {
|
|
29542
29555
|
})( jQuery, window, document );
|
29543
29556
|
|
29544
29557
|
/*!
|
29545
|
-
* # Fomantic-UI 2.9.1-beta.
|
29558
|
+
* # Fomantic-UI 2.9.1-beta.16+7071e59 - Visibility
|
29546
29559
|
* https://github.com/fomantic/Fomantic-UI/
|
29547
29560
|
*
|
29548
29561
|
*
|
@@ -29555,9 +29568,9 @@ $.fn.state.settings = {
|
|
29555
29568
|
|
29556
29569
|
'use strict';
|
29557
29570
|
|
29558
|
-
|
29571
|
+
function isFunction(obj) {
|
29559
29572
|
return typeof obj === "function" && typeof obj.nodeType !== "number";
|
29560
|
-
}
|
29573
|
+
}
|
29561
29574
|
|
29562
29575
|
window = (typeof window != 'undefined' && window.Math == Math)
|
29563
29576
|
? window
|
@@ -29786,7 +29799,7 @@ $.fn.visibility = function(parameters) {
|
|
29786
29799
|
handleLoad = function() {
|
29787
29800
|
loadedCounter++;
|
29788
29801
|
if (loadedCounter >= images.length) {
|
29789
|
-
if (
|
29802
|
+
if (isFunction(callback)) {
|
29790
29803
|
callback();
|
29791
29804
|
}
|
29792
29805
|
}
|
@@ -30711,7 +30724,7 @@ $.fn.visibility = function(parameters) {
|
|
30711
30724
|
}
|
30712
30725
|
});
|
30713
30726
|
}
|
30714
|
-
if (
|
30727
|
+
if ( isFunction( found ) ) {
|
30715
30728
|
response = found.apply(context, passedArguments);
|
30716
30729
|
}
|
30717
30730
|
else if(found !== undefined) {
|