Rev571, Optional file sizes to sidebar, Download all optional files option in sidebar, Optional file number in peer stats, Delete removed or changed optional files, Auto download optional files if autodownloadoptional checked, SiteReload command, Peer use global file server if no site defined, Allow browser cache video files, Allow more keepalive connections, Gevent 1.1 ranged request bugfix, Dont sent optional files details on websocket, Remove files from workermanager tasks if no longer in bad_files, Notify local client about changes on external siteSign

This commit is contained in:
HelloZeroNet 2015-11-09 00:44:03 +01:00
parent 2cf34c132f
commit 3587777ea8
17 changed files with 212 additions and 41 deletions

View file

@ -15,9 +15,9 @@ window.initScrollable = function () {
// *Calculation of how tall scroller should be
var visibleRatio = scrollContainer.offsetHeight / scrollContentWrapper.scrollHeight;
if (visibleRatio == 1)
scroller.style.display = "none"
scroller.style.display = "none";
else
scroller.style.display = "block"
scroller.style.display = "block";
return visibleRatio * scrollContainer.offsetHeight;
}
@ -32,13 +32,13 @@ window.initScrollable = function () {
normalizedPosition = evt.pageY;
contentPosition = scrollContentWrapper.scrollTop;
scrollerBeingDragged = true;
window.addEventListener('mousemove', scrollBarScroll)
return false
window.addEventListener('mousemove', scrollBarScroll);
return false;
}
function stopDrag(evt) {
scrollerBeingDragged = false;
window.removeEventListener('mousemove', scrollBarScroll)
window.removeEventListener('mousemove', scrollBarScroll);
}
function scrollBarScroll(evt) {
@ -51,7 +51,7 @@ window.initScrollable = function () {
}
function updateHeight() {
scrollerHeight = calculateScrollerHeight()-10;
scrollerHeight = calculateScrollerHeight() - 10;
scroller.style.height = scrollerHeight + 'px';
}
@ -62,9 +62,9 @@ window.initScrollable = function () {
scroller.className = 'scroller';
// determine how big scroller should be based on content
scrollerHeight = calculateScrollerHeight()-10;
scrollerHeight = calculateScrollerHeight() - 10;
if (scrollerHeight / scrollContainer.offsetHeight < 1){
if (scrollerHeight / scrollContainer.offsetHeight < 1) {
// *If there is a need to have scroll bar based on content size
scroller.style.height = scrollerHeight + 'px';
@ -87,5 +87,5 @@ window.initScrollable = function () {
// *** Listeners ***
scrollContentWrapper.addEventListener('scroll', moveScroller);
return updateHeight
return updateHeight;
};