aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-02-23 21:48:45 +0100
committerMario Vavti <mario@mariovavti.com>2019-02-23 21:48:45 +0100
commit06aa32db224926227794fe4e76bcdfdb1b6b62e5 (patch)
tree9e5b9de14c0c91f12ecfe8a1865235a348c6af4d /view/tpl/jot-header.tpl
parentef6a280019e105bd90aca5c25e395237f9de934b (diff)
downloadvolse-hubzilla-06aa32db224926227794fe4e76bcdfdb1b6b62e5.tar.gz
volse-hubzilla-06aa32db224926227794fe4e76bcdfdb1b6b62e5.tar.bz2
volse-hubzilla-06aa32db224926227794fe4e76bcdfdb1b6b62e5.zip
fix regression from commit 04ec35d9cc39cbf62c8db2818574c1f6d56f2a20 where selecting multiple images from embed photos dialog broke and fix issue where items were not scrolled to there correct position if justifiedGalleryActive flag was true
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-xview/tpl/jot-header.tpl10
1 files changed, 5 insertions, 5 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index 9a44f1a54..afaaa62d9 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -427,7 +427,9 @@ var activeCommentText = '';
var imageparent = document.getElementById($(image).parent()[0].id);
$(imageparent).toggleClass('embed-photo-selected-photo');
var href = $(imageparent).attr('href');
- $.post("embedphotos/photolink", {href: href},
+ $.post(
+ "embedphotos/photolink",
+ {href: href},
function(ddata) {
if (ddata['status']) {
addeditortext(ddata['photolink']);
@@ -437,10 +439,8 @@ var activeCommentText = '';
}
return false;
},
- 'json');
- $('#embedPhotoModalBodyAlbumDialog').html('');
- $('#embedPhotoModalBodyAlbumDialog').off('click');
- $('#embedPhotoModal').modal('hide');
+ 'json'
+ );
}
});
$('#embedPhotoModalBodyAlbumListDialog').addClass('d-none');