]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/js/mod_photos.js
Merge pull request #8131 from nupplaphil/task/cleanup_lock
[friendica.git] / view / theme / frio / js / mod_photos.js
index 77173385b192ddf27bd6f555c934a126a6348dab..2e7160aafa9217b00f323911030c03da1e0c83ad 100644 (file)
@@ -23,6 +23,15 @@ $(document).ready(function() {
                        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);
+               }
+       });
 });
 
 $(window).load(function() {