From 1974692480e90b2bbf12d14a171cdfcbfad79513 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Fri, 2 Jun 2017 20:22:15 +0200 Subject: [PATCH] Forgot the selectAll.js --- public/css/main.css | 2 +- public/js/selectAll.js | 7 ++++--- templates/admin/torrentlist.html | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index ab8e7333..e548d76b 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -952,7 +952,7 @@ input.filelist-checkbox:checked + table.table-filelist { } .tr-actions { - width: 130px; + width: 140px; } .toolbar { diff --git a/public/js/selectAll.js b/public/js/selectAll.js index aca872a7..7516cba8 100644 --- a/public/js/selectAll.js +++ b/public/js/selectAll.js @@ -1,4 +1,5 @@ -$("[data-selectall='checkbox']").on("change", function(e) { - var form = $(this).parents("form"); - $(form).find("input[type='checkbox']").prop('checked', $(this).prop('checked')); +document.querySelector("[data-selectall='checkbox']").addEventListener("change", function(e) { + var cbs = document.querySelectorAll("input[type='checkbox'].selectable"); + var l = cbs.length; + for (var i=0; i {{ range .Models}} - + {{ .Name }} {{ if not .IsDeleted }}({{ call $.T "edit"}}){{end}} {{ if .Uploader }}{{ .Uploader.Username }}{{ else }}れんちょん{{end}}