From 7ea748a189bb039a72102d28ca2bed88bc19efe4 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Wed, 28 Mar 2018 17:06:12 +0100 Subject: [PATCH] Fix clicking next and previous show buttons on macOS Safari. --- CHANGES.md | 7 ++++++- gui/slick/js/config.js | 2 +- gui/slick/js/configPostProcessing.js | 2 +- gui/slick/js/displayShow.js | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 7ccd5417..2fd52d10 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 0.15.2 (2018-03-28 01:45:00 UTC) +### 0.15.3 (2018-03-28 16:55:00 UTC) + +* Fix clicking next and previous show buttons on macOS Safari + + +### 0.15.2 (2018-03-28 01:45:00 UTC) * Fix search for wanted when adding new show diff --git a/gui/slick/js/config.js b/gui/slick/js/config.js index 9a0134b3..336f55ab 100644 --- a/gui/slick/js/config.js +++ b/gui/slick/js/config.js @@ -321,7 +321,7 @@ function fetch_branches() { add_option_to_branches(text); }); $('#branchCheckout').removeAttr('disabled'); - $('#branchVersion').find('option[value="' + data['current'] + '"]').attr('selected', 'selected'); + $('#branchVersion').find('option[value="' + data['current'] + '"]').prop('selected', !0); } else { add_option_to_branches('No branches available'); } diff --git a/gui/slick/js/configPostProcessing.js b/gui/slick/js/configPostProcessing.js index 90ea058a..a9b3e73e 100644 --- a/gui/slick/js/configPostProcessing.js +++ b/gui/slick/js/configPostProcessing.js @@ -444,7 +444,7 @@ $(document).ready(function () { }); if (cur_most_provider != '' && first) { - $('#metadataType option[value=' + cur_most_provider + ']').attr('selected', 'selected'); + $('#metadataType option[value=' + cur_most_provider + ']').prop('selected', !0); $(this).showHideMetadata(); } diff --git a/gui/slick/js/displayShow.js b/gui/slick/js/displayShow.js index 9ac81cd7..f7b5f19e 100644 --- a/gui/slick/js/displayShow.js +++ b/gui/slick/js/displayShow.js @@ -20,7 +20,7 @@ $(document).ready(function() { //noinspection JSUnresolvedVariable select$.find('option[value="' + config.TVShowList[('nextShow' === $(this).attr('id') ? (index < config.TVShowList.length - 1 ? index + 1 : 0) - : (0 < index ? index - 1 : config.TVShowList.length - 1))] + '"]').attr('selected', 'selected'); + : (0 < index ? index - 1 : config.TVShowList.length - 1))] + '"]').prop('selected', !0); select$.change(); return !1; });