mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-20 16:43:43 +00:00
Changed js code for checkout button to perform a windows.location.href to redirect on click event.
This commit is contained in:
parent
e9eca837a8
commit
27c4b66bf6
1 changed files with 2 additions and 5 deletions
|
@ -72,11 +72,8 @@ $(document).ready(function () {
|
|||
|
||||
$('#branchCheckout').click(function () {
|
||||
$("#branchCheckout").attr("disabled", true);
|
||||
var branchVersion = $("#branchVersion").val();
|
||||
$.get(sbRoot + "/home/update", {'pid': sbPID, 'branch': branchVersion})
|
||||
.done(function () {
|
||||
$("#branchCheckout").attr("disabled", false);
|
||||
});
|
||||
url = sbRoot+'/home/branchCheckout?branch='+$("#branchVersion").val();
|
||||
window.location.href = url;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue