mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Updated: ckeditor 4.5.3, jquery 1.11.3, openpgpjs 1.2.0
OpenPGP decrypt fix + Small fixes
This commit is contained in:
parent
4deb083d7d
commit
87887373c1
370 changed files with 10805 additions and 5637 deletions
29
dev/External/ko.js
vendored
29
dev/External/ko.js
vendored
|
|
@ -73,6 +73,35 @@
|
|||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.scrollerShadows = {
|
||||
'init': function (oElement) {
|
||||
|
||||
var
|
||||
iLimit = 8,
|
||||
$oEl = $(oElement),
|
||||
$win = $(window),
|
||||
oCont = $oEl.find('[data-scroller-shadows-content]')[0] || null,
|
||||
fFunc = _.throttle(function () {
|
||||
$oEl
|
||||
.toggleClass('scroller-shadow-top', iLimit < oCont.scrollTop)
|
||||
.toggleClass('scroller-shadow-bottom', oCont.scrollTop + iLimit < oCont.scrollHeight - oCont.clientHeight)
|
||||
;
|
||||
}, 100)
|
||||
;
|
||||
|
||||
if (oCont)
|
||||
{
|
||||
$(oCont).on('scroll resize', fFunc);
|
||||
$win.on('resize', fFunc);
|
||||
|
||||
ko.utils.domNodeDisposal.addDisposeCallback(oCont, function () {
|
||||
$(oCont).off();
|
||||
$win.off('resize', fFunc);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
ko.bindingHandlers.tooltip = {
|
||||
'init': function (oElement, fValueAccessor) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue