-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sorrel Harriet
committed
Sep 25, 2024
1 parent
c600620
commit ab1bf2e
Showing
4 changed files
with
145 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
$('#ModalLong').on('show.bs.modal', function (event) { | ||
var button = $(event.relatedTarget) // Button that triggered the modal | ||
var title = button.data('element').title // Extract info from data-* attributes | ||
var desc = button.data('element').description | ||
var links = button.data('element').links | ||
var listItems = "" | ||
$.each( links, function( key, value ) { | ||
listItems += "<li><a href='"+value+"'>"+value+"</a></li>" | ||
}); | ||
var modal = $(this) | ||
modal.find('.modal-title').text(title) | ||
modal.find('.modal-text').text(desc) | ||
modal.find('.modal-list').html(listItems) | ||
}) |
Oops, something went wrong.