mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-15 09:07:43 +00:00
Fix button "Checkout branch" when stuck on disabled.
This commit is contained in:
parent
2021116657
commit
160ec46643
3 changed files with 5 additions and 4 deletions
|
@ -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 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"
|
* Add search setting "Disable auto full backlog"
|
||||||
* Change improve performance and reduce start up time
|
* Change improve performance and reduce start up time
|
||||||
|
* Fix button "Checkout branch" when stuck on disabled
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
* Change send nzb data to NZBGet for Anizb instead of url
|
* Change send nzb data to NZBGet for Anizb instead of url
|
||||||
|
|
|
@ -302,8 +302,8 @@ function fetch_branches() {
|
||||||
$.each(branches, function (i, text) {
|
$.each(branches, function (i, text) {
|
||||||
add_option_to_branches(text);
|
add_option_to_branches(text);
|
||||||
});
|
});
|
||||||
$('#branchVersion').find('option[value=' + data['current'] + ']').attr('selected','selected');
|
|
||||||
$('#branchCheckout').removeAttr('disabled');
|
$('#branchCheckout').removeAttr('disabled');
|
||||||
|
$('#branchVersion').find('option[value="' + data['current'] + '"]').attr('selected', 'selected');
|
||||||
} else {
|
} else {
|
||||||
add_option_to_branches('No branches available');
|
add_option_to_branches('No branches available');
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,13 +22,13 @@ function is_alive() {
|
||||||
|
|
||||||
$('#shut_down_message').find('.spinner,.hide-yes').removeClass();
|
$('#shut_down_message').find('.spinner,.hide-yes').removeClass();
|
||||||
$('#restart_message').removeClass();
|
$('#restart_message').removeClass();
|
||||||
setTimeout(is_alive, 250);
|
setTimeout(is_alive, 100);
|
||||||
|
|
||||||
} else if ('' == $.SickGear.currentPid || $.SickGear.currentPid == data.msg) {
|
} else if ('' == $.SickGear.currentPid || $.SickGear.currentPid == data.msg) {
|
||||||
// if this is before we've even shut down then just try again later
|
// if this is before we've even shut down then just try again later
|
||||||
|
|
||||||
$.SickGear.currentPid = data.msg;
|
$.SickGear.currentPid = data.msg;
|
||||||
setTimeout(is_alive, 250);
|
setTimeout(is_alive, 100);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// if we're ready to go then redirect to new url
|
// if we're ready to go then redirect to new url
|
||||||
|
@ -78,7 +78,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
if (0 == timeoutId) {
|
if (0 == timeoutId) {
|
||||||
|
|
||||||
timeoutId = setTimeout(is_alive, 250);
|
timeoutId = setTimeout(is_alive, 100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue