mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Release fixes
This commit is contained in:
parent
43d1794423
commit
bce962328d
15 changed files with 320 additions and 278 deletions
27
dev/External/ko.js
vendored
27
dev/External/ko.js
vendored
|
|
@ -325,6 +325,33 @@
|
|||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.initFixedTrigger = {
|
||||
'init': function (oElement, fValueAccessor) {
|
||||
var
|
||||
aValues = ko.unwrap(fValueAccessor()),
|
||||
$oContainer = null,
|
||||
$oElement = $(oElement),
|
||||
oOffset = null,
|
||||
|
||||
iTop = aValues[1] || 0
|
||||
;
|
||||
|
||||
$oContainer = $(aValues[0] || null);
|
||||
$oContainer = $oContainer[0] ? $oContainer : null;
|
||||
|
||||
if ($oContainer)
|
||||
{
|
||||
$(window).resize(function () {
|
||||
oOffset = $oContainer.offset();
|
||||
if (oOffset && oOffset.top)
|
||||
{
|
||||
$oElement.css('top', oOffset.top + iTop);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.initResizeTrigger = {
|
||||
'init': function (oElement, fValueAccessor) {
|
||||
var aValues = ko.unwrap(fValueAccessor());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue