mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05: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
@ -72,11 +72,8 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
$('#branchCheckout').click(function () {
|
$('#branchCheckout').click(function () {
|
||||||
$("#branchCheckout").attr("disabled", true);
|
$("#branchCheckout").attr("disabled", true);
|
||||||
var branchVersion = $("#branchVersion").val();
|
url = sbRoot+'/home/branchCheckout?branch='+$("#branchVersion").val();
|
||||||
$.get(sbRoot + "/home/update", {'pid': sbPID, 'branch': branchVersion})
|
window.location.href = url;
|
||||||
.done(function () {
|
|
||||||
$("#branchCheckout").attr("disabled", false);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user