From 11cf6354f13add72a33d5b0b4419d7964f46bb9d Mon Sep 17 00:00:00 2001 From: kilo Date: Fri, 14 Jul 2017 22:04:01 +0200 Subject: [PATCH] add remake JS --- public/js/kilo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/js/kilo.js b/public/js/kilo.js index e871777e..108549c5 100644 --- a/public/js/kilo.js +++ b/public/js/kilo.js @@ -6,6 +6,10 @@ document.getElementsByClassName("form-torrent-category")[0].onchange = function( document.getElementsByClassName("table-torrent-category")[0].className = "table-torrent-category nyaa-cat nyaa-cat-" + Categorylist[document.getElementsByClassName("form-torrent-category")[0].selectedIndex]; }; +document.getElementsByClassName("form-torrent-remake")[0].onchange = function(){ + document.getElementsByClassName("table-torrent-category")[0].className = "table-torrent-category nyaa-cat nyaa-cat-" + Categorylist[document.getElementsByClassName("form-torrent-category")[0].selectedIndex] + (document.getElementsByClassName("table-torrent-category")[0] == on) ? "remake" : ""); +}; + document.getElementsByClassName("torrent-preview-table")[0].display = "block"; var CategoryList = [