Commit c988279e authored by Efthymia Bika's avatar Efthymia Bika

Disable/enable actions when backup is running

parent 06a2e4ae
......@@ -53,6 +53,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
if(typeof backups[selected_backup].last_status != 'undefined' &&
backups[selected_backup].last_status == "Running") {
disable_buttons(true);
disable_actions(true);
disable_form(true);
$("#loader").show();
}
if(typeof backups[selected_backup].first_backup != 'undefined') {
......
......@@ -20,7 +20,7 @@ function backup(restore) {
if(!restore) {
save_backup_set();
disable_form(true);
disable_actions(false);
disable_actions(true);
disable_buttons(true);
}
run_duplicity(restore, false);
......@@ -214,6 +214,9 @@ function run_duplicity(restore, force) {
if(typeof backups[cloud + "/" + container_name].first_backup == 'undefined') {
backups[cloud + "/" + container_name].first_backup = new Date();
}
disable_actions(false);
$("#inc").prop("disabled", false);
$("#inc").prop("checked", true);
}
}
if(!restore) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment