From c6d872d1773a0470c9a707e7fe1ae610699bc8dd Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 23 Jun 2021 07:39:20 +0000 Subject: jot: do not collapse the form if in popup mode --- view/tpl/jot-header.tpl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index d0e4e9e0e..2669f80cf 100644 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -320,18 +320,17 @@ var activeCommentText = ''; postSaveChanges('clean'); - {{if $reset}} {{if $popup}} - $("#jot-popup").hide(); - editor = false; - {{else}} + return; + {{/if}} + + {{if $reset}} $(".jothidden").hide(); $("#profile-jot-text").removeClass('jot-expanded'); $("#profile-jot-tools").addClass('d-none'); $("#jot-poll-wrap").addClass('d-none'); $("#jot-preview-content").html('').hide(); editor = false; - {{/if}} {{else}} window.history.back(); {{/if}} -- cgit v1.2.3