|
@ -4235,14 +4235,15 @@ $.fn.dropdown = function(parameters) { |
|
|
if(module.has.message() && !module.has.maxSelections()) { |
|
|
if(module.has.message() && !module.has.maxSelections()) { |
|
|
module.remove.message(); |
|
|
module.remove.message(); |
|
|
} |
|
|
} |
|
|
module.animate.show(function() { |
|
|
|
|
|
if( module.can.click() ) { |
|
|
|
|
|
module.bind.intent(); |
|
|
|
|
|
} |
|
|
|
|
|
module.set.visible(); |
|
|
|
|
|
callback.call(element); |
|
|
|
|
|
}); |
|
|
|
|
|
settings.onShow.call(element); |
|
|
|
|
|
|
|
|
if(settings.onShow.call(element) !== false) { |
|
|
|
|
|
module.animate.show(function() { |
|
|
|
|
|
if( module.can.click() ) { |
|
|
|
|
|
module.bind.intent(); |
|
|
|
|
|
} |
|
|
|
|
|
module.set.visible(); |
|
|
|
|
|
callback.call(element); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -4253,11 +4254,12 @@ $.fn.dropdown = function(parameters) { |
|
|
; |
|
|
; |
|
|
if( module.is.active() ) { |
|
|
if( module.is.active() ) { |
|
|
module.debug('Hiding dropdown'); |
|
|
module.debug('Hiding dropdown'); |
|
|
module.animate.hide(function() { |
|
|
|
|
|
module.remove.visible(); |
|
|
|
|
|
callback.call(element); |
|
|
|
|
|
}); |
|
|
|
|
|
settings.onHide.call(element); |
|
|
|
|
|
|
|
|
if(settings.onHide.call(element) !== false) { |
|
|
|
|
|
module.animate.hide(function() { |
|
|
|
|
|
module.remove.visible(); |
|
|
|
|
|
callback.call(element); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -4457,7 +4459,6 @@ $.fn.dropdown = function(parameters) { |
|
|
apiSettings = { |
|
|
apiSettings = { |
|
|
errorDuration : false, |
|
|
errorDuration : false, |
|
|
throttle : settings.throttle, |
|
|
throttle : settings.throttle, |
|
|
cache : 'local', |
|
|
|
|
|
urlData : { |
|
|
urlData : { |
|
|
query: query |
|
|
query: query |
|
|
}, |
|
|
}, |
|
@ -4657,6 +4658,11 @@ $.fn.dropdown = function(parameters) { |
|
|
module.hide(); |
|
|
module.hide(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
else if(pageLostFocus) { |
|
|
|
|
|
if(settings.forceSelection) { |
|
|
|
|
|
module.forceSelection(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
icon: { |
|
|
icon: { |
|
@ -4822,7 +4828,7 @@ $.fn.dropdown = function(parameters) { |
|
|
var |
|
|
var |
|
|
$label = $module.find(selector.label), |
|
|
$label = $module.find(selector.label), |
|
|
$activeLabel = $label.filter('.' + className.active), |
|
|
$activeLabel = $label.filter('.' + className.active), |
|
|
activeValue = $activeLabel.data('value'), |
|
|
|
|
|
|
|
|
activeValue = $activeLabel.data(metadata.value), |
|
|
labelIndex = $label.index($activeLabel), |
|
|
labelIndex = $label.index($activeLabel), |
|
|
labelCount = $label.length, |
|
|
labelCount = $label.length, |
|
|
hasActiveLabel = ($activeLabel.length > 0), |
|
|
hasActiveLabel = ($activeLabel.length > 0), |
|
@ -5185,7 +5191,8 @@ $.fn.dropdown = function(parameters) { |
|
|
module.hideAndClear(); |
|
|
module.hideAndClear(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
hide: function() { |
|
|
|
|
|
|
|
|
hide: function(text, value) { |
|
|
|
|
|
module.set.value(value); |
|
|
module.hideAndClear(); |
|
|
module.hideAndClear(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -5975,7 +5982,7 @@ $.fn.dropdown = function(parameters) { |
|
|
else { |
|
|
else { |
|
|
module.verbose('Storing value in metadata', value, $input); |
|
|
module.verbose('Storing value in metadata', value, $input); |
|
|
if(value !== currentValue) { |
|
|
if(value !== currentValue) { |
|
|
$module.data(metadata.value, value); |
|
|
|
|
|
|
|
|
$module.data(metadata.value, stringValue); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(settings.fireOnInit === false && module.is.initialLoad()) { |
|
|
if(settings.fireOnInit === false && module.is.initialLoad()) { |
|
@ -6286,7 +6293,7 @@ $.fn.dropdown = function(parameters) { |
|
|
if(settings.useLabels && module.has.maxSelections() ) { |
|
|
if(settings.useLabels && module.has.maxSelections() ) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if(settings.useLabels) { |
|
|
|
|
|
|
|
|
if(settings.useLabels && module.is.multiple()) { |
|
|
$item.not('.' + className.active).removeClass(className.filtered); |
|
|
$item.not('.' + className.active).removeClass(className.filtered); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
@ -6419,16 +6426,19 @@ $.fn.dropdown = function(parameters) { |
|
|
$labels |
|
|
$labels |
|
|
.each(function(){ |
|
|
.each(function(){ |
|
|
var |
|
|
var |
|
|
value = $(this).data('value'), |
|
|
|
|
|
isUserValue = module.is.userValue(value) |
|
|
|
|
|
|
|
|
value = $(this).data(metadata.value), |
|
|
|
|
|
stringValue = (typeof value == 'number') |
|
|
|
|
|
? value.toString() |
|
|
|
|
|
: value, |
|
|
|
|
|
isUserValue = module.is.userValue(stringValue) |
|
|
; |
|
|
; |
|
|
if(isUserValue) { |
|
|
if(isUserValue) { |
|
|
module.remove.value(value); |
|
|
|
|
|
module.remove.label(value); |
|
|
|
|
|
|
|
|
module.remove.value(stringValue); |
|
|
|
|
|
module.remove.label(stringValue); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
// selected will also remove label
|
|
|
// selected will also remove label
|
|
|
module.remove.selected(value); |
|
|
|
|
|
|
|
|
module.remove.selected(stringValue); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
; |
|
|
; |
|
@ -15438,12 +15448,8 @@ $.fn.sticky = function(parameters) { |
|
|
}, |
|
|
}, |
|
|
size: function() { |
|
|
size: function() { |
|
|
if(module.cache.element.height !== 0 && module.cache.element.width !== 0) { |
|
|
if(module.cache.element.height !== 0 && module.cache.element.width !== 0) { |
|
|
$module |
|
|
|
|
|
.css({ |
|
|
|
|
|
width : module.cache.element.width, |
|
|
|
|
|
height : module.cache.element.height |
|
|
|
|
|
}) |
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
element.style.setProperty('width', module.cache.element.width + 'px', 'important'); |
|
|
|
|
|
element.style.setProperty('height', module.cache.element.height + 'px', 'important'); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -15497,16 +15503,17 @@ $.fn.sticky = function(parameters) { |
|
|
if(elementVisible) { |
|
|
if(elementVisible) { |
|
|
|
|
|
|
|
|
if( module.is.initialPosition() ) { |
|
|
if( module.is.initialPosition() ) { |
|
|
if(scroll.top > context.bottom) { |
|
|
|
|
|
module.debug('Element bottom of container'); |
|
|
|
|
|
|
|
|
if(scroll.top >= context.bottom) { |
|
|
|
|
|
module.debug('Initial element position is bottom of container'); |
|
|
module.bindBottom(); |
|
|
module.bindBottom(); |
|
|
} |
|
|
} |
|
|
else if(scroll.top > element.top) { |
|
|
else if(scroll.top > element.top) { |
|
|
module.debug('Element passed, fixing element to page'); |
|
|
|
|
|
if( (element.height + scroll.top - elementScroll) > context.bottom ) { |
|
|
|
|
|
|
|
|
if( (element.height + scroll.top - elementScroll) >= context.bottom ) { |
|
|
|
|
|
module.debug('Initial element position is bottom of container'); |
|
|
module.bindBottom(); |
|
|
module.bindBottom(); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
|
|
|
module.debug('Initial element position is fixed'); |
|
|
module.fixTop(); |
|
|
module.fixTop(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -15516,11 +15523,11 @@ $.fn.sticky = function(parameters) { |
|
|
|
|
|
|
|
|
// currently fixed top
|
|
|
// currently fixed top
|
|
|
if( module.is.top() ) { |
|
|
if( module.is.top() ) { |
|
|
if( scroll.top < element.top ) { |
|
|
|
|
|
|
|
|
if( scroll.top <= element.top ) { |
|
|
module.debug('Fixed element reached top of container'); |
|
|
module.debug('Fixed element reached top of container'); |
|
|
module.setInitialPosition(); |
|
|
module.setInitialPosition(); |
|
|
} |
|
|
} |
|
|
else if( (element.height + scroll.top - elementScroll) > context.bottom ) { |
|
|
|
|
|
|
|
|
else if( (element.height + scroll.top - elementScroll) >= context.bottom ) { |
|
|
module.debug('Fixed element reached bottom of container'); |
|
|
module.debug('Fixed element reached bottom of container'); |
|
|
module.bindBottom(); |
|
|
module.bindBottom(); |
|
|
} |
|
|
} |
|
@ -15536,12 +15543,12 @@ $.fn.sticky = function(parameters) { |
|
|
else if(module.is.bottom() ) { |
|
|
else if(module.is.bottom() ) { |
|
|
|
|
|
|
|
|
// top edge
|
|
|
// top edge
|
|
|
if( (scroll.bottom - element.height) < element.top) { |
|
|
|
|
|
|
|
|
if( (scroll.bottom - element.height) <= element.top) { |
|
|
module.debug('Bottom fixed rail has reached top of container'); |
|
|
module.debug('Bottom fixed rail has reached top of container'); |
|
|
module.setInitialPosition(); |
|
|
module.setInitialPosition(); |
|
|
} |
|
|
} |
|
|
// bottom edge
|
|
|
// bottom edge
|
|
|
else if(scroll.bottom > context.bottom) { |
|
|
|
|
|
|
|
|
else if(scroll.bottom >= context.bottom) { |
|
|
module.debug('Bottom fixed rail has reached bottom of container'); |
|
|
module.debug('Bottom fixed rail has reached bottom of container'); |
|
|
module.bindBottom(); |
|
|
module.bindBottom(); |
|
|
} |
|
|
} |
|
@ -15556,13 +15563,13 @@ $.fn.sticky = function(parameters) { |
|
|
} |
|
|
} |
|
|
else if( module.is.bottom() ) { |
|
|
else if( module.is.bottom() ) { |
|
|
if(settings.pushing) { |
|
|
if(settings.pushing) { |
|
|
if(module.is.bound() && scroll.bottom < context.bottom ) { |
|
|
|
|
|
|
|
|
if(module.is.bound() && scroll.bottom <= context.bottom ) { |
|
|
module.debug('Fixing bottom attached element to bottom of browser.'); |
|
|
module.debug('Fixing bottom attached element to bottom of browser.'); |
|
|
module.fixBottom(); |
|
|
module.fixBottom(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
if(module.is.bound() && (scroll.top < context.bottom - element.height) ) { |
|
|
|
|
|
|
|
|
if(module.is.bound() && (scroll.top <= context.bottom - element.height) ) { |
|
|
module.debug('Fixing bottom attached element to top of browser.'); |
|
|
module.debug('Fixing bottom attached element to top of browser.'); |
|
|
module.fixTop(); |
|
|
module.fixTop(); |
|
|
} |
|
|
} |
|
@ -15606,6 +15613,7 @@ $.fn.sticky = function(parameters) { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setInitialPosition: function() { |
|
|
setInitialPosition: function() { |
|
|
|
|
|
module.debug('Returning to initial position'); |
|
|
module.unfix(); |
|
|
module.unfix(); |
|
|
module.unbind(); |
|
|
module.unbind(); |
|
|
}, |
|
|
}, |
|
@ -15648,24 +15656,28 @@ $.fn.sticky = function(parameters) { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
unbind: function() { |
|
|
unbind: function() { |
|
|
module.debug('Removing absolute position on element'); |
|
|
|
|
|
module.remove.offset(); |
|
|
|
|
|
$module |
|
|
|
|
|
.removeClass(className.bound) |
|
|
|
|
|
.removeClass(className.top) |
|
|
|
|
|
.removeClass(className.bottom) |
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
if( module.is.bound() ) { |
|
|
|
|
|
module.debug('Removing container bound position on element'); |
|
|
|
|
|
module.remove.offset(); |
|
|
|
|
|
$module |
|
|
|
|
|
.removeClass(className.bound) |
|
|
|
|
|
.removeClass(className.top) |
|
|
|
|
|
.removeClass(className.bottom) |
|
|
|
|
|
; |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
unfix: function() { |
|
|
unfix: function() { |
|
|
module.debug('Removing fixed position on element'); |
|
|
|
|
|
module.remove.offset(); |
|
|
|
|
|
$module |
|
|
|
|
|
.removeClass(className.fixed) |
|
|
|
|
|
.removeClass(className.top) |
|
|
|
|
|
.removeClass(className.bottom) |
|
|
|
|
|
; |
|
|
|
|
|
settings.onUnstick.call(element); |
|
|
|
|
|
|
|
|
if( module.is.fixed() ) { |
|
|
|
|
|
module.debug('Removing fixed position on element'); |
|
|
|
|
|
module.remove.offset(); |
|
|
|
|
|
$module |
|
|
|
|
|
.removeClass(className.fixed) |
|
|
|
|
|
.removeClass(className.top) |
|
|
|
|
|
.removeClass(className.bottom) |
|
|
|
|
|
; |
|
|
|
|
|
settings.onUnstick.call(element); |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
reset: function() { |
|
|
reset: function() { |
|
@ -15931,6 +15943,7 @@ $.fn.sticky.settings = { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
})( jQuery, window , document ); |
|
|
})( jQuery, window , document ); |
|
|
|
|
|
|
|
|
/*! |
|
|
/*! |
|
|
* # Semantic UI 2.1.0 - Tab |
|
|
* # Semantic UI 2.1.0 - Tab |
|
|
* http://github.com/semantic-org/semantic-ui/
|
|
|
* http://github.com/semantic-org/semantic-ui/
|
|
@ -16307,7 +16320,7 @@ $.fn.tab = function(parameters) { |
|
|
else if(tabPath.search('/') == -1 && tabPath !== '') { |
|
|
else if(tabPath.search('/') == -1 && tabPath !== '') { |
|
|
// look for in page anchor
|
|
|
// look for in page anchor
|
|
|
$anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]'); |
|
|
$anchor = $('#' + tabPath + ', a[name="' + tabPath + '"]'); |
|
|
currentPath = $anchor.closest('[data-tab]').data('tab'); |
|
|
|
|
|
|
|
|
currentPath = $anchor.closest('[data-tab]').data(metadata.tab); |
|
|
$tab = module.get.tabElement(currentPath); |
|
|
$tab = module.get.tabElement(currentPath); |
|
|
// if anchor exists use parent tab
|
|
|
// if anchor exists use parent tab
|
|
|
if($anchor && $anchor.length > 0 && currentPath) { |
|
|
if($anchor && $anchor.length > 0 && currentPath) { |
|
|