]> 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 b8d03b5db91feda7e6e7f6c5e99af9d8903e8075..2e7160aafa9217b00f323911030c03da1e0c83ad 100644 (file)
@@ -15,7 +15,23 @@ $(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');
+               }
+       });
+
+       // 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() {