]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/js/mod_photos.js
Merge pull request #6589 from rabuzarus/20190204_-_show_forum_account_in_vcard
[friendica.git] / view / theme / frio / js / mod_photos.js
index b8d03b5db91feda7e6e7f6c5e99af9d8903e8075..77173385b192ddf27bd6f555c934a126a6348dab 100644 (file)
@@ -15,7 +15,14 @@ $(document).ready(function() {
 
        }).trigger('change');
 
+       // Click event listener for the album edit link/button.
+       $("body").on('click', '#album-edit-link', function() {
+               var modalUrl = $(this).attr("data-modal-url");
 
+               if (typeof modalUrl !== "undefined") {
+                       addToModal(modalUrl, 'photo-album-edit-wrapper');
+               }
+       });
 });
 
 $(window).load(function() {