From 160ec466432090970538bc884cd6226db3be264a Mon Sep 17 00:00:00 2001 From: JackDandy Date: Fri, 28 Oct 2016 18:57:37 +0100 Subject: [PATCH] Fix button "Checkout branch" when stuck on disabled. --- CHANGES.md | 1 + gui/slick/js/config.js | 2 +- gui/slick/js/restart.js | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index b9ab1428..598356e5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -189,6 +189,7 @@ * Add advice to logs if all caches fail to switch to direct client connect instead of the basic blackhole method * Add search setting "Disable auto full backlog" * Change improve performance and reduce start up time +* Fix button "Checkout branch" when stuck on disabled [develop changelog] * Change send nzb data to NZBGet for Anizb instead of url diff --git a/gui/slick/js/config.js b/gui/slick/js/config.js index ac7eec89..14ee30ad 100644 --- a/gui/slick/js/config.js +++ b/gui/slick/js/config.js @@ -302,8 +302,8 @@ function fetch_branches() { $.each(branches, function (i, text) { add_option_to_branches(text); }); - $('#branchVersion').find('option[value=' + data['current'] + ']').attr('selected','selected'); $('#branchCheckout').removeAttr('disabled'); + $('#branchVersion').find('option[value="' + data['current'] + '"]').attr('selected', 'selected'); } else { add_option_to_branches('No branches available'); } diff --git a/gui/slick/js/restart.js b/gui/slick/js/restart.js index ddbddee5..6acd3c50 100644 --- a/gui/slick/js/restart.js +++ b/gui/slick/js/restart.js @@ -22,13 +22,13 @@ function is_alive() { $('#shut_down_message').find('.spinner,.hide-yes').removeClass(); $('#restart_message').removeClass(); - setTimeout(is_alive, 250); + setTimeout(is_alive, 100); } else if ('' == $.SickGear.currentPid || $.SickGear.currentPid == data.msg) { // if this is before we've even shut down then just try again later $.SickGear.currentPid = data.msg; - setTimeout(is_alive, 250); + setTimeout(is_alive, 100); } else { // if we're ready to go then redirect to new url @@ -78,7 +78,7 @@ $(document).ready(function() { if (0 == timeoutId) { - timeoutId = setTimeout(is_alive, 250); + timeoutId = setTimeout(is_alive, 100); } });