From 2203939e6fd89c93b75dc9a3a2611230b88692c0 Mon Sep 17 00:00:00 2001 From: TagForce Date: Thu, 22 Jan 2015 13:03:06 +0100 Subject: [PATCH] Added Select All Checkbox to Preview Rename page - Added "Select All" check box under new "All Seasons" table - Duplicated "Rename Selected" and "Cancel Rename" buttons to be available underneath the "Select All" checkbox. --- gui/slick/interfaces/default/testRename.tmpl | 22 +++++++++++++++++++- gui/slick/js/testRename.js | 14 +++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/gui/slick/interfaces/default/testRename.tmpl b/gui/slick/interfaces/default/testRename.tmpl index 87ea39b3..45c8d0d9 100644 --- a/gui/slick/interfaces/default/testRename.tmpl +++ b/gui/slick/interfaces/default/testRename.tmpl @@ -32,6 +32,26 @@ #set $curSeason = -1 #set $odd = False + + + + + + + + + + + + + +
+

All Seasons

+
Select All
+ +
+ Cancel Rename + #for $cur_ep_obj in $ep_obj_list: @@ -43,7 +63,7 @@ diff --git a/gui/slick/js/testRename.js b/gui/slick/js/testRename.js index 10ba453a..faf61b70 100644 --- a/gui/slick/js/testRename.js +++ b/gui/slick/js/testRename.js @@ -1,4 +1,18 @@ $(document).ready(function(){ + $('.seriesCheck').click(function(){ + var serCheck = this; + + $('.seasonCheck:visible').each(function(){ + + this.checked = serCheck.checked + }); + + $('.epCheck:visible').each(function(){ + + this.checked = serCheck.checked + }); + }); + $('.seasonCheck').click(function(){ var seasCheck = this; var seasNo = $(seasCheck).attr('id');
-
+

#if int($cur_ep_obj.season) == 0 then "Specials" else "Season "+str($cur_ep_obj.season)#