From 27c4b66bf6015a8cded769de0abc67f668f0a834 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 27 Jul 2014 16:29:01 -0700 Subject: [PATCH] Changed js code for checkout button to perform a windows.location.href to redirect on click event. --- gui/slick/js/config.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gui/slick/js/config.js b/gui/slick/js/config.js index 81ad4b63..130a23d3 100644 --- a/gui/slick/js/config.js +++ b/gui/slick/js/config.js @@ -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; }); });