From f44121e2f9036b8f07400395868442336a7e9bad Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Thu, 2 Feb 2017 20:37:44 -0800 Subject: [PATCH] Stacked user/library edit modals --- data/interfaces/default/edit_library.html | 20 -------------------- data/interfaces/default/edit_user.html | 20 -------------------- 2 files changed, 40 deletions(-) diff --git a/data/interfaces/default/edit_library.html b/data/interfaces/default/edit_library.html index c8548fb7..4f3369d9 100644 --- a/data/interfaces/default/edit_library.html +++ b/data/interfaces/default/edit_library.html @@ -154,26 +154,6 @@ DOCUMENTATION :: END $('#confirm-modal-purge').appendTo($('#edit-library-modal').parent()); } $('#edit-library-modal > #confirm-modal-purge').remove(); - - $('#edit-library-modal').css('z-index', '1050'); - $('.modal-backdrop').not('.modal-backdrop-stack').css('z-index', '1049'); - $('.modal-backdrop').not('.modal-backdrop-stack').addClass('modal-backdrop-stack'); - - $('#confirm-modal-purge').on('show.bs.modal', function () { - // Fix position to match parent modal - var currentPadding = parseInt($('body').css('padding-right')); - $(this).children('.modal-dialog').css('left', -currentPadding/2); - $('#edit-library-modal').css('overflow-y', 'hidden'); - }); - $('#confirm-modal-purge').on('shown.bs.modal', function () { - $(this).css('z-index', '1060'); - $('.modal-backdrop').not('.modal-backdrop-stack').css('z-index', '1059'); - $('.modal-backdrop').not('.modal-backdrop-stack').addClass('modal-backdrop-stack'); - }); - $('#confirm-modal-purge').on('hidden.bs.modal', function () { - $('body').addClass('modal-open'); - $('#edit-library-modal').css('overflow-y', 'auto'); - }); }); % endif \ No newline at end of file diff --git a/data/interfaces/default/edit_user.html b/data/interfaces/default/edit_user.html index 859a21b1..1a3790be 100644 --- a/data/interfaces/default/edit_user.html +++ b/data/interfaces/default/edit_user.html @@ -165,26 +165,6 @@ DOCUMENTATION :: END $('#confirm-modal-purge').appendTo($('#edit-user-modal').parent()); } $('#edit-user-modal > #confirm-modal-purge').remove(); - - $('#edit-user-modal').css('z-index', '1050'); - $('.modal-backdrop').not('.modal-backdrop-stack').css('z-index', '1049'); - $('.modal-backdrop').not('.modal-backdrop-stack').addClass('modal-backdrop-stack'); - - $('#confirm-modal-purge').on('show.bs.modal', function () { - // Fix position to match parent modal - var currentPadding = parseInt($('body').css('padding-right')); - $(this).children('.modal-dialog').css('left', -currentPadding/2); - $('#edit-user-modal').css('overflow-y', 'hidden'); - }); - $('#confirm-modal-purge').on('shown.bs.modal', function () { - $(this).css('z-index', '1060'); - $('.modal-backdrop').not('.modal-backdrop-stack').css('z-index', '1059'); - $('.modal-backdrop').not('.modal-backdrop-stack').addClass('modal-backdrop-stack'); - }); - $('#confirm-modal-purge').on('hidden.bs.modal', function () { - $('body').addClass('modal-open'); - $('#edit-user-modal').css('overflow-y', 'auto'); - }); }); % endif \ No newline at end of file