diff options
author | friendica <info@friendica.com> | 2015-02-26 17:18:09 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-26 17:18:09 -0800 |
commit | 5d57df2694b6515b43c4a641bf47b8c5f112d4f7 (patch) | |
tree | 69c146fde030d5f3ba174ebdcce12a50b38822e9 /view/js | |
parent | dce0bb0ef806d88a855c362f359b7b1a350deff2 (diff) | |
download | volse-hubzilla-5d57df2694b6515b43c4a641bf47b8c5f112d4f7.tar.gz volse-hubzilla-5d57df2694b6515b43c4a641bf47b8c5f112d4f7.tar.bz2 volse-hubzilla-5d57df2694b6515b43c4a641bf47b8c5f112d4f7.zip |
per Randal overheard on a foreign network - tab in post/comment edit window goes to submit instead of the next button.
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js index ee94d05e5..8ee676f0d 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -9,6 +9,10 @@ if(obj.value == aStr['comment']) { obj.value = ''; $("#comment-edit-text-" + id).addClass("comment-edit-text-full").removeClass("comment-edit-text-empty"); + // Choose an arbitrary tab index that's greater than what we're using in jot (3 of them) + // The submit button gets tabindex + 1 + $("#comment-edit-text-" + id).attr('tabindex','9'); + $("#comment-edit-submit-" + id).attr('tabindex','10'); $("#comment-tools-" + id).show(); } }; @@ -25,6 +29,8 @@ if(obj.value == '') { obj.value = aStr['comment']; $("#comment-edit-text-" + id).removeClass("comment-edit-text-full").addClass("comment-edit-text-empty"); + $("#comment-edit-text-" + id).removeAttr('tabindex'); + $("#comment-edit-submit-" + id).removeAttr('tabindex'); $("#comment-tools-" + id).hide(); } }; |