aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-21 18:45:33 +0000
committerMario <mario@mariovavti.com>2021-06-21 18:45:33 +0000
commitcc4f3a827c71f7a9a3c4b77328bb2427759795f4 (patch)
tree13338cb389ebe0ca9456c4e16fe2edf6cc4dcbb4
parent0489fbb6853944dcaad97d0e95466a34dc65f0d1 (diff)
downloadvolse-hubzilla-cc4f3a827c71f7a9a3c4b77328bb2427759795f4.tar.gz
volse-hubzilla-cc4f3a827c71f7a9a3c4b77328bb2427759795f4.tar.bz2
volse-hubzilla-cc4f3a827c71f7a9a3c4b77328bb2427759795f4.zip
streamline jot popup for mod hq
-rw-r--r--Zotlabs/Module/Hq.php6
-rw-r--r--include/conversation.php3
-rw-r--r--view/tpl/hq.tpl4
-rw-r--r--view/tpl/jot-header.tpl5
4 files changed, 8 insertions, 10 deletions
diff --git a/Zotlabs/Module/Hq.php b/Zotlabs/Module/Hq.php
index 4d55b76b0..8c126d154 100644
--- a/Zotlabs/Module/Hq.php
+++ b/Zotlabs/Module/Hq.php
@@ -113,11 +113,7 @@ class Hq extends \Zotlabs\Web\Controller {
'reset' => t('Reset form')
];
- $o = replace_macros(get_markup_template("hq.tpl"),
- [
- '$editor' => status_editor($a,$x,false,'Hq')
- ]
- );
+ $o = status_editor($a, $x, true);
}
diff --git a/include/conversation.php b/include/conversation.php
index 39ff8d7ad..d8f0e8155 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1388,7 +1388,8 @@ function hz_status_editor($a, $x, $popup = false) {
'$nocomment_enabled' => t('Comments enabled'),
'$nocomment_disabled' => t('Comments disabled'),
'$auto_save_draft' => $feature_auto_save_draft,
- '$reset' => $reset
+ '$reset' => $reset,
+ '$popup' => $popup
];
call_hooks('jot_header_tpl_filter',$tplmacros);
diff --git a/view/tpl/hq.tpl b/view/tpl/hq.tpl
deleted file mode 100644
index 099d892bb..000000000
--- a/view/tpl/hq.tpl
+++ /dev/null
@@ -1,4 +0,0 @@
-<div id="jot-popup">
-{{$editor}}
-</div>
-
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index b24283664..d0e4e9e0e 100644
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -321,12 +321,17 @@ var activeCommentText = '';
postSaveChanges('clean');
{{if $reset}}
+ {{if $popup}}
+ $("#jot-popup").hide();
+ editor = false;
+ {{else}}
$(".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}}