diff options
author | Mario <mario@mariovavti.com> | 2021-03-08 19:12:37 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-08 19:12:37 +0000 |
commit | d57f4a9527896b472f5bf6dc429a1edeff0d0aef (patch) | |
tree | 08b6c95ceffa6b28b3a564708e192c9ed38cbe9e /view/tpl/jot-header.tpl | |
parent | 6506cab55b1b2025bdd9888d1b22cfdda747b9fc (diff) | |
download | volse-hubzilla-d57f4a9527896b472f5bf6dc429a1edeff0d0aef.tar.gz volse-hubzilla-d57f4a9527896b472f5bf6dc429a1edeff0d0aef.tar.bz2 volse-hubzilla-d57f4a9527896b472f5bf6dc429a1edeff0d0aef.zip |
fix unexpected trigger of buttons when pressing enter in input field issue #1528
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rw-r--r-- | view/tpl/jot-header.tpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index 2539c1fdf..dde623783 100644 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -51,7 +51,7 @@ var activeCommentID = 0; var activeCommentText = ''; $(document).ready(function() { - + $("#profile-jot-text").focus(enableOnUser); $("#profile-jot-text").click(enableOnUser); @@ -125,8 +125,8 @@ var activeCommentText = ''; }); - function jotSetMime() { - var mtype = $('#id_mimetype').val(); + function jotSetMime() { + var mtype = $('#id_mimetype').val(); if(mtype == 'text/bbcode') $('#profile-jot-submit-left').show(); else @@ -155,7 +155,7 @@ var activeCommentText = ''; textarea = document.getElementById('profile-jot-text'); if (textarea.selectionStart || textarea.selectionStart == "0") { var start = textarea.selectionStart; - var end = textarea.selectionEnd; + var end = textarea.selectionEnd; if (end > start) { reply = prompt("{{$linkurl}}"); if(reply && reply.length) { @@ -351,7 +351,7 @@ var activeCommentText = ''; return false; }); }); - + } function itemFilerRm(id, term) { @@ -593,7 +593,7 @@ $( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-del localStorage.removeItem("post_body" + postid); localStorage.removeItem("post_category" + postid); } - } + } } |