diff options
author | Mario <mario@mariovavti.com> | 2025-04-04 15:22:09 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-04-04 15:22:09 +0000 |
commit | b38da72535f48b5ed14ec641be3085a711d97c0b (patch) | |
tree | dffafedc4702079bc99ebc602d0d8f738a55e7ac /view/js | |
parent | 2c4f1dcf039c8d9d99c3e8ab579b775268a4e853 (diff) | |
download | volse-hubzilla-b38da72535f48b5ed14ec641be3085a711d97c0b.tar.gz volse-hubzilla-b38da72535f48b5ed14ec641be3085a711d97c0b.tar.bz2 volse-hubzilla-b38da72535f48b5ed14ec641be3085a711d97c0b.zip |
move jot related functions to jot-header and some cleanup
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/view/js/main.js b/view/js/main.js index cfdd82315..43f0333ed 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1729,42 +1729,6 @@ function loadText(textRegion,data) { $(textRegion).val(currentText + data); } -function addeditortext(data) { - if(plaintext == 'none') { - var currentText = $("#profile-jot-text").val(); - $("#profile-jot-text").val(currentText + data); - } -} - -// Add text to active comment region if set, otherwise add to main editor -function addActiveEditorText(data) { - if (activeCommentID) { - const textarea = document.getElementById('comment-edit-text-' + activeCommentID); - - if (textarea) { - let currentText = textarea.value; - - // Clear the textarea if it matches the active comment text - if (currentText === activeCommentText) { - currentText = ''; - } - - textarea.classList.add('expanded'); - openMenu('comment-tools-' + activeCommentID); - textarea.value = currentText + data; - textarea.focus(); - textarea.click(); - preview_comment(activeCommentID); - } - - // Reset activeCommentID after processing - activeCommentID = 0; - } else { - addeditortext(data); - preview_post(); - } -} - function makeid(length) { var result = ''; var characters = 'abcdef0123456789'; |