-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mampf-next' into annotation-tool
- Loading branch information
Showing
49 changed files
with
224 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
app/assets/javascripts/bootstrap_modal_turbolinks_fix.coffee
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$(document).on('turbolinks:load', function () { | ||
// show all active modals | ||
$('.activeModal').modal('show'); | ||
// remove active status (this needs to be reestablished before caching) | ||
$('.activeModal').removeClass('activeModal'); | ||
}); | ||
|
||
$(document).on('turbolinks:before-cache', function () { | ||
// if some modal is open | ||
if ($('body').hasClass('modal-open')) { | ||
$('.modal.show').addClass('activeModal'); | ||
$('.modal.show').modal('hide'); | ||
// remove the greyed out background | ||
$('.modal-backdrop').remove(); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
$(document).on('turbolinks:load', function () { | ||
initBootstrapPopovers(); | ||
}); | ||
|
||
/** | ||
* Initializes all Bootstrap popovers on the page. | ||
* | ||
* This function might be used for the first initialization of popovers as well | ||
* as for reinitialization on page changes. | ||
* | ||
* See: https://getbootstrap.com/docs/5.3/components/popovers/#enable-popovers | ||
*/ | ||
function initBootstrapPopovers() { | ||
const popoverHtmlElements = document.querySelectorAll('[data-bs-toggle="popover"]'); | ||
for (const element of popoverHtmlElements) { | ||
new bootstrap.Popover(element); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.admin-background { | ||
background-size: 20px 20px; | ||
background-image: radial-gradient(circle, #bebebe 1px, #ffffff00 1px); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.