aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-23 07:39:20 +0000
committerMario <mario@mariovavti.com>2021-06-23 07:39:20 +0000
commitc6d872d1773a0470c9a707e7fe1ae610699bc8dd (patch)
treec2ecf5a4bdef33b2bfa0635f3258b2cc7d7f14a6
parentcc4f3a827c71f7a9a3c4b77328bb2427759795f4 (diff)
downloadvolse-hubzilla-c6d872d1773a0470c9a707e7fe1ae610699bc8dd.tar.gz
volse-hubzilla-c6d872d1773a0470c9a707e7fe1ae610699bc8dd.tar.bz2
volse-hubzilla-c6d872d1773a0470c9a707e7fe1ae610699bc8dd.zip
jot: do not collapse the form if in popup mode
-rw-r--r--view/tpl/jot-header.tpl9
1 files changed, 4 insertions, 5 deletions
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}}