+ if (typeof modalUrl !== "undefined") {
+ addToModal(modalUrl, 'photo-album-edit-wrapper');
+ }
+ });
+
+ // Click event listener for the album drop link/button.
+ $("body").on('click', '#album-drop-link', function() {
+ var modalUrl = $(this).attr("data-modal-url");
+
+ if (typeof modalUrl !== "undefined") {
+ addToModal(modalUrl);
+ }
+ });