From 091dd2f916b25ba1abea7af7c8b493a0ac7bbaf5 Mon Sep 17 00:00:00 2001 From: KasperRT Date: Mon, 20 Oct 2014 02:26:48 +0200 Subject: [PATCH] killrefresh for lists iscroll --- js/list.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/js/list.js b/js/list.js index 6070978b..a89d8d19 100755 --- a/js/list.js +++ b/js/list.js @@ -111,4 +111,25 @@ function show(){ $("#chan").removeClass("bigChan"); $("#chan").html(chan); } -} \ No newline at end of file +} + + +function ks() +{ + list = $.ajax({ type: "GET", + url: "php/change.php", + async: false + }).responseText; + list = $.parseJSON(list); + myScroll.destroy(); + myScroll = null; + $("#playlist").css({height: $("#player").height()}); + $("#playlist").css({overflow: "hidden"}); + myScroll = new IScroll('#playlist', { + mouseWheel: true, + scrollbars: false, + scrollY: true, + interactiveScrollbars: false + }); + scroller = true; +}