mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Testing checkout feature
This commit is contained in:
parent
27c4b66bf6
commit
0f2941435f
@ -42,7 +42,7 @@ $(document).ready(function () {
|
|||||||
$('#date_presets').val(def)
|
$('#date_presets').val(def)
|
||||||
});
|
});
|
||||||
|
|
||||||
// bind 'myForm' and provide a simple callback function
|
// bind 'myForm' and provide a simple callback function
|
||||||
$('#configForm').ajaxForm({
|
$('#configForm').ajaxForm({
|
||||||
beforeSubmit: function () {
|
beforeSubmit: function () {
|
||||||
$('.config_submitter').each(function () {
|
$('.config_submitter').each(function () {
|
||||||
@ -72,8 +72,8 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
$('#branchCheckout').click(function () {
|
$('#branchCheckout').click(function () {
|
||||||
$("#branchCheckout").attr("disabled", true);
|
$("#branchCheckout").attr("disabled", true);
|
||||||
url = sbRoot+'/home/branchCheckout?branch='+$("#branchVersion").val();
|
$.get(sbRoot + "/home/branchCheckout", {'branch': $("#branchVersion").val()},
|
||||||
window.location.href = url;
|
function (data){ $(this).html(data); });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3469,7 +3469,7 @@ class Home(MainHandler):
|
|||||||
"Update wasn't successful, not restarting. Check your log for more information.")
|
"Update wasn't successful, not restarting. Check your log for more information.")
|
||||||
|
|
||||||
def branchCheckout(self, branch):
|
def branchCheckout(self, branch):
|
||||||
self.update(sickbeard.PID, branch)
|
return self.update(sickbeard.PID, branch)
|
||||||
|
|
||||||
def displayShow(self, show=None):
|
def displayShow(self, show=None):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user