aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-26 10:42:13 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-26 10:42:13 +0100
commit4781a8cb6bbd6d0e379b404c455844ddbc7e2812 (patch)
treeedf2dbb22428c90b3f3ec5875e95edc3334e3db7 /view/tpl/jot-header.tpl
parenta38c8cc75c67b240140cb815e66393d9c6daba09 (diff)
parentd2ed3a9abbb5c68d1a02eae629bc103aa43a1263 (diff)
downloadvolse-hubzilla-4781a8cb6bbd6d0e379b404c455844ddbc7e2812.tar.gz
volse-hubzilla-4781a8cb6bbd6d0e379b404c455844ddbc7e2812.tar.bz2
volse-hubzilla-4781a8cb6bbd6d0e379b404c455844ddbc7e2812.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl20
1 files changed, 8 insertions, 12 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index 0ffc8b349..c1dab52d5 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -459,13 +459,7 @@ var activeCommentText = '';
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']) {
@@ -476,12 +470,14 @@ var activeCommentText = '';
}
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']);
}