1
0
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:
echel0n 2014-07-27 16:29:01 -07:00
parent e9eca837a8
commit 27c4b66bf6

View File

@ -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;
});
});