mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 22:35:03 -05:00
2c510aa210
Fixes the issue where top menu items would disappear on smaller screens. Add Bootstrap v3.2.0 with Normalize v3.0.1 from github.com/twbs/bootstrap. Add a modified jquery pnotify stylesheet. Various UI tweaks. Update CHANGES.md and TODO.txt
24 lines
938 B
JavaScript
24 lines
938 B
JavaScript
$(document).ready(function(){
|
|
var loading = '<img src="' + sbRoot + '/images/loading16.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);
|
|
});
|
|
});
|
|
}); |