From 06aa32db224926227794fe4e76bcdfdb1b6b62e5 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 23 Feb 2019 21:48:45 +0100 Subject: 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 --- view/tpl/jot-header.tpl | 10 +++++----- view/tpl/jot.tpl | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'view/tpl') 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'); diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index 12509fc59..b4616db6d 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -302,7 +302,7 @@ {{if $embedPhotos}}