diff options
author | Mario <mario@mariovavti.com> | 2025-05-07 19:02:53 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-05-07 19:02:53 +0000 |
commit | ee9b53132ed13ac3fa980816b388eb81f169918a (patch) | |
tree | c56808c450bbd877dd2b76688eb22198e6d24df4 | |
parent | ca4bb5927ed65dc01e136fef18a348ee52a1712e (diff) | |
download | volse-hubzilla-ee9b53132ed13ac3fa980816b388eb81f169918a.tar.gz volse-hubzilla-ee9b53132ed13ac3fa980816b388eb81f169918a.tar.bz2 volse-hubzilla-ee9b53132ed13ac3fa980816b388eb81f169918a.zip |
wording, fix comment preview and remove logging
-rw-r--r-- | include/conversation.php | 9 | ||||
-rw-r--r-- | view/js/main.js | 8 | ||||
-rw-r--r-- | view/tpl/comment_item.tpl | 2 |
3 files changed, 7 insertions, 12 deletions
diff --git a/include/conversation.php b/include/conversation.php index a6498d94c..75b38a21d 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -563,11 +563,6 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa $likebuttons = false; $shareable = false; - if (!isset($item['sig'])) { - hz_syslog(print_r($item,true)); - bt_syslog('nosig'); - } - $verified = (intval($item['item_verified']) ? t('Message signature validated') : ''); $forged = ((!empty($item['sig']) && !intval($item['item_verified'])) ? t('Message signature incorrect') : ''); @@ -1245,8 +1240,8 @@ function hz_status_editor($x, $popup = false) { call_hooks('jot_networks', $jotnets); } - $sharebutton = (!empty($x['button']) ? $x['button'] : t('Share')); - $placeholdtext = (!empty($x['content_label']) ? $x['content_label'] : $sharebutton); + $sharebutton = (!empty($x['button']) ? $x['button'] : t('Submit')); + $placeholdtext = (!empty($x['content_label']) ? $x['content_label'] : t('Start a conversation')); $tplmacros = [ '$return_path' => ((!empty($x['return_path'])) ? $x['return_path'] : App::$query_string), diff --git a/view/js/main.js b/view/js/main.js index 7d2e9f524..73ee3ebb1 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1459,12 +1459,15 @@ function doreply(parent, ident, owner, hint) { const modal_content = document.getElementById('reactions_body'); const modal_title = document.getElementById('reactions_title'); const modal_action = document.getElementById('reactions_action'); + modal_action.style.display = 'none'; modal_title.innerHTML = hint; + const preview = document.getElementById('comment-edit-preview-' + parent.toString()); + preview.innerHTML = ''; // Get the form element by ID - const form = document.getElementById('comment-edit-form-' + parent.toString()); + const form = document.getElementById('comment-edit-wrapper-' + parent.toString()); if (!form) return; modal_content.innerHTML = ''; @@ -1503,15 +1506,12 @@ function doreply(parent, ident, owner, hint) { modal.show(); - // Set the textarea value const textarea = form.querySelector('textarea'); if (textarea) { textarea.value = "@{" + owner + "}" + ((!isInSel || quote.length === 0) ? " " : "\n[quote]" + quote + "[/quote]\n"); textarea.focus(); } - - } diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl index 6b7e163eb..16965be0b 100644 --- a/view/tpl/comment_item.tpl +++ b/view/tpl/comment_item.tpl @@ -74,5 +74,5 @@ </div> <div class="clear"></div> </form> + <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview mt-4"></div> </div> - <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview mt-4"></div> |