general fixes

This commit is contained in:
Your Name
2018-07-11 13:21:21 -04:00
parent d3e6af4643
commit 73d31021d2
3 changed files with 14 additions and 3 deletions

View File

@@ -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];

View File

@@ -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");

View File

@@ -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");