Testing checkout feature

This commit is contained in:
echel0n 2014-07-27 17:21:55 -07:00
parent 27c4b66bf6
commit 0f2941435f
2 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ $(document).ready(function () {
$('#date_presets').val(def)
});
// bind 'myForm' and provide a simple callback function
// bind 'myForm' and provide a simple callback function
$('#configForm').ajaxForm({
beforeSubmit: function () {
$('.config_submitter').each(function () {
@ -72,8 +72,8 @@ $(document).ready(function () {
$('#branchCheckout').click(function () {
$("#branchCheckout").attr("disabled", true);
url = sbRoot+'/home/branchCheckout?branch='+$("#branchVersion").val();
window.location.href = url;
$.get(sbRoot + "/home/branchCheckout", {'branch': $("#branchVersion").val()},
function (data){ $(this).html(data); });
});
});

View File

@ -3469,7 +3469,7 @@ class Home(MainHandler):
"Update wasn't successful, not restarting. Check your log for more information.")
def branchCheckout(self, branch):
self.update(sickbeard.PID, branch)
return self.update(sickbeard.PID, branch)
def displayShow(self, show=None):