mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
general fixes
This commit is contained in:
@@ -847,6 +847,16 @@ function pagination_results(e) {
|
||||
|
||||
function handleEvent(e, target, tried, type) {
|
||||
var path = e.path || (e.composedPath && e.composedPath());
|
||||
if(!path) {
|
||||
var path = [target];
|
||||
var parent = target.parentElement;
|
||||
while(parent != null) {
|
||||
path.push(parent);
|
||||
try {
|
||||
parent = parent.parentElement;
|
||||
} catch(e){break;}
|
||||
}
|
||||
}
|
||||
if(path) {
|
||||
for(var y = 0; y < path.length; y++) {
|
||||
var target = path[y];
|
||||
|
||||
@@ -1336,7 +1336,8 @@ window.addEventListener("resize", function(){
|
||||
}
|
||||
List.can_fit = temp_fit;
|
||||
List.element_height = (Helper.computedStyle("#wrapper", "height") / List.can_fit)-5.3;
|
||||
Helper.css(".list-song", "height", List.element_height + "px");
|
||||
|
||||
Helper.css(".list-song", "height", List.element_height + "px");
|
||||
Channel.set_title_width();
|
||||
if(!client) {
|
||||
var controlsPosition = document.querySelector("#controls").offsetHeight - Helper.computedStyle("#controls", "height");
|
||||
|
||||
@@ -155,8 +155,8 @@ var Search = {
|
||||
Helper.addClass(".prev-results-button", "disabled");
|
||||
}
|
||||
|
||||
document.querySelector(".pagination-results a").setAttribute("data-original-search", search_input);
|
||||
|
||||
document.querySelectorAll(".pagination-results a")[0].setAttribute("data-original-search", search_input);
|
||||
document.querySelectorAll(".pagination-results a")[1].setAttribute("data-original-search", search_input);
|
||||
//setTimeout(function(){$(".thumb").lazyload({container: $("#results")});}, 250);
|
||||
|
||||
Helper.removeClass(".search_loader_spinner", "active");
|
||||
|
||||
Reference in New Issue
Block a user