Skip to content
Snippets Groups Projects
Commit b812ce6b authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

FIX: Also show edit mode warning after reload

parent a4500880
No related branches found
No related tags found
1 merge request!22ENH: Show min-width warning in tour and edit mode
Pipeline #7068 passed with warnings
......@@ -70,6 +70,10 @@ var edit_mode = new function() {
if (this.is_edit_mode()) {
edit_mode.enter_edit_mode();
edit_mode.toggle_edit_panel();
// This is for the very specific case of reloading the
// page while the edit mode is active on small screens
$(".caosdb-edit-min-width-warning").removeClass("d-none");
$(".caosdb-edit-min-width-warning").addClass("d-block");
}
$('.caosdb-f-edit').css("transition", "top 1s");
} else {
......@@ -1736,6 +1740,10 @@ var edit_mode = new function() {
//$(".caosdb-f-main").toggleClass("container-fluid").toggleClass("container");
//$(".caosdb-f-main-entities").toggleClass("col-xs-8");
$(".caosdb-f-edit").toggle();//.toggleClass("col-xs-4");
this._toggle_min_width_warning();
}
this._toggle_min_width_warning = function() {
// Somewhat counter-intuitive, but when we're not in edit mode
// and toggle the panel, we're entering and the warning should
// be shown on small screens and vice-versa.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment