Commit ba2ca05e authored by Efthymia Bika's avatar Efthymia Bika

Clear messages div while navigating between tabs

parent 3658c1f0
......@@ -200,6 +200,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
$("#backup_details").hide();
$("#cleanup-msg").html("");
$("#cleanup-msg").removeClass("panel");
$("#msg").html("");
$("#msg").removeClass("panel");
$("#remove-all-button").show();
$("#force-delete").hide();
}
......
......@@ -128,24 +128,28 @@ function toggle_msgs(data, msgDiv) {
} else {
$("#" + msgDiv).removeClass("panel");
$("#" + msgDiv).html("");
if($("#error-alert")) $("#error-alert").hide();
}
}
function load_status() {
$('#backup_details').hide();
$("#loader").show();
toggle_msgs(null, "msg");
$("#status_contents").html("");
call_duplicity("status", get_backup_set(), false);
}
function remove_all(force) {
$("#loader").show();
toggle_msgs(null, "msg");
call_duplicity("remove", get_backup_set(), force);
}
function load_timeview() {
$('#backup_details').hide();
$("#loader").show();
toggle_msgs(null, "msg");
call_duplicity("timeview", get_backup_set(), false);
}
......
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