aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-08 19:12:37 +0000
committerMario <mario@mariovavti.com>2021-03-08 19:12:37 +0000
commitd57f4a9527896b472f5bf6dc429a1edeff0d0aef (patch)
tree08b6c95ceffa6b28b3a564708e192c9ed38cbe9e /view/tpl/jot-header.tpl
parent6506cab55b1b2025bdd9888d1b22cfdda747b9fc (diff)
downloadvolse-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.tpl12
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);
}
- }
+ }
}