From 556aacbc0f4da79b2bd73f4f2e7671ece48310e1 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Mon, 12 Dec 2022 22:00:50 +0100 Subject: [PATCH] Fix #17944 - unable to create a view from tree view button - Add the modal to the navigation panel - Prevent modals to be removed on navigation bar is replaced Signed-off-by: William Desportes --- js/src/ajax.js | 1 + templates/navigation/main.twig | 1 + 2 files changed, 2 insertions(+) diff --git a/js/src/ajax.js b/js/src/ajax.js index 538897aa4c3b..43980ba29542 100644 --- a/js/src/ajax.js +++ b/js/src/ajax.js @@ -509,6 +509,7 @@ var AJAX = { // Remove all containers that may have // been added outside of #page_content $('body').children() + .not("div.modal") .not('#pma_navigation') .not('#floating_menubar') .not('#page_nav_icons') diff --git a/templates/navigation/main.twig b/templates/navigation/main.twig index 5c70cc40dbb9..b4fe7abae57b 100644 --- a/templates/navigation/main.twig +++ b/templates/navigation/main.twig @@ -95,4 +95,5 @@ {% endif %} {{ include('modals/unhide_nav_item.twig') }} + {{ include('modals/create_view.twig') }} {% endif %}