Skip to content

Commit

Permalink
Fix #17944 - unable to create a view from tree view button
Browse files Browse the repository at this point in the history
- Add the modal to the navigation panel
- Prevent modals to be removed on navigation bar is replaced

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Dec 12, 2022
1 parent 62abb43 commit 556aacb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/src/ajax.js
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions templates/navigation/main.twig
Expand Up @@ -95,4 +95,5 @@
{% endif %}
</div>
{{ include('modals/unhide_nav_item.twig') }}
{{ include('modals/create_view.twig') }}
{% endif %}

0 comments on commit 556aacb

Please sign in to comment.