From 5d57df2694b6515b43c4a641bf47b8c5f112d4f7 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 26 Feb 2015 17:18:09 -0800 Subject: per Randal overheard on a foreign network - tab in post/comment edit window goes to submit instead of the next button. --- view/js/main.js | 6 ++++++ view/tpl/comment_item.tpl | 2 +- view/tpl/jot.tpl | 6 +++--- 3 files changed, 10 insertions(+), 4 deletions(-) (limited to 'view') 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(); } }; diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl index ab67bc196..cdcf35131 100755 --- a/view/tpl/comment_item.tpl +++ b/view/tpl/comment_item.tpl @@ -60,7 +60,7 @@
{{if $preview}} - {{/if}} diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl index f32dba095..4fe48d4e5 100755 --- a/view/tpl/jot.tpl +++ b/view/tpl/jot.tpl @@ -21,7 +21,7 @@
{{/if}} {{if $catsenabled}} {{/if}}
- +
@@ -99,7 +99,7 @@ {{/if}} - +
-- cgit v1.2.3