mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 03:48:02 -05:00
831248b412
Fixed issues with Backup/Restore. Fixed issues with banners, posters, images via showPoster method. Fixed issues with WebAPI apikeys. Fixed issues with WebUI and url pattern matching.
24 lines
960 B
JavaScript
24 lines
960 B
JavaScript
$(document).ready(function(){
|
|
var loading = '<img src="' + sbRoot + '/images/loading16' + themeSpinner + '.gif" height="16" width="16" />';
|
|
|
|
$('#Backup').click(function() {
|
|
$("#Backup").attr("disabled", true);
|
|
$('#Backup-result').html(loading);
|
|
var backupDir = $("#backupDir").val();
|
|
$.get(sbRoot + "/config/backup/", {'backupDir': backupDir})
|
|
.done(function (data) {
|
|
$('#Backup-result').html(data);
|
|
$("#Backup").attr("disabled", false);
|
|
});
|
|
});
|
|
$('#Restore').click(function() {
|
|
$("#Restore").attr("disabled", true);
|
|
$('#Restore-result').html(loading);
|
|
var backupFile = $("#backupFile").val();
|
|
$.get(sbRoot + "/config/restore/", {'backupFile': backupFile})
|
|
.done(function (data) {
|
|
$('#Restore-result').html(data);
|
|
$("#Restore").attr("disabled", false);
|
|
});
|
|
});
|
|
}); |