diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-02-26 18:19:08 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-02-26 19:48:15 -0500 |
commit | 1035c453ea6468de13db8eb04fbb55d38347ff2a (patch) | |
tree | 6334368706467665fa7a5f5d75efd1dce886620e /view/js/mod_cover_photo.js | |
parent | 45e0fc6802b360710becf7ddaf6aed6a9de1d876 (diff) | |
parent | fe7fba4789fac2024c4e8e711e2f8a2492c683bd (diff) | |
download | volse-hubzilla-1035c453ea6468de13db8eb04fbb55d38347ff2a.tar.gz volse-hubzilla-1035c453ea6468de13db8eb04fbb55d38347ff2a.tar.bz2 volse-hubzilla-1035c453ea6468de13db8eb04fbb55d38347ff2a.zip |
Merge branch 'dev' into oauth2
Diffstat (limited to 'view/js/mod_cover_photo.js')
-rw-r--r-- | view/js/mod_cover_photo.js | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/view/js/mod_cover_photo.js b/view/js/mod_cover_photo.js index b9af8ce5c..5b64b8b91 100644 --- a/view/js/mod_cover_photo.js +++ b/view/js/mod_cover_photo.js @@ -27,13 +27,7 @@ if (typeof($(image).parent()[0]) !== 'undefined') { var imageparent = document.getElementById($(image).parent()[0].id); $(imageparent).toggleClass('embed-photo-selected-photo'); - } - }); - $('#embedPhotoModalBodyAlbumListDialog').addClass('d-none'); - $('#embedPhotoModalBodyAlbumDialog').removeClass('d-none'); - $('#embed-photo-OKButton').click(function () { - $('.embed-photo-selected-photo').each(function (index) { - var href = $(this).attr('href'); + var href = $(imageparent).attr('href'); $.post("embedphotos/photolink", {href: href}, function(ddata) { if (ddata['status']) { @@ -42,13 +36,16 @@ window.console.log("{{$modalerrorlink}}" + ':' + ddata['errormsg']); } return false; - }, - 'json'); - }); - $('#embedPhotoModalBodyAlbumDialog').html(''); - $('#embedPhotoModalBodyAlbumDialog').off('click'); - $('#embedPhotoModal').modal('hide'); + }, + 'json'); + $('#embedPhotoModalBodyAlbumDialog').html(''); + $('#embedPhotoModalBodyAlbumDialog').off('click'); + $('#embedPhotoModal').modal('hide'); + } }); + + $('#embedPhotoModalBodyAlbumListDialog').addClass('d-none'); + $('#embedPhotoModalBodyAlbumDialog').removeClass('d-none'); } else { window.console.log("{{$modalerroralbum}} " + JSON.stringify(album) + ':' + data['errormsg']); } |