[Notice] Announcing the End of Demo Server [Read me]

board,issue: Set tabindex to title and body.
Markdown's Edit/View tab has bothered that switch between title and body with tab key.
@91cde319caa3440657cc5fffd7b87b6a6a0a83ea
--- app/views/board/editPost.scala.html
+++ app/views/board/editPost.scala.html
... | ... | @@ -17,10 +17,10 @@ |
17 | 17 |
</div> |
18 | 18 |
</div> |
19 | 19 |
<label for="title"> |
20 |
- @helper.inputText(form("title"), 'class->"text title", 'placeholder -> Messages("post.new.title"), 'maxlength -> "250") |
|
20 |
+ @helper.inputText(form("title"), 'class->"text title", 'placeholder -> Messages("post.new.title"), 'maxlength -> "250", 'tabindex -> 1) |
|
21 | 21 |
</label> |
22 | 22 |
<label for="content"> |
23 |
- @helper.textarea(form("contents"), 'markdown -> true, 'class->"text content") |
|
23 |
+ @helper.textarea(form("contents"), 'markdown -> true, 'class->"text content", 'tabindex -> 2) |
|
24 | 24 |
<div id="upload" resourceType=@Resource.BOARD_POST resourceId=@postId></div> |
25 | 25 |
</label> |
26 | 26 |
<!-- |
--- app/views/board/newPost.scala.html
+++ app/views/board/newPost.scala.html
... | ... | @@ -16,10 +16,10 @@ |
16 | 16 |
</div> |
17 | 17 |
</div> |
18 | 18 |
<label for="title"> |
19 |
- @helper.inputText(form("title"), 'class->"text title", 'placeholder -> Messages("post.new.title"), 'maxlength -> "250") |
|
19 |
+ @helper.inputText(form("title"), 'class->"text title", 'placeholder -> Messages("post.new.title"), 'maxlength -> "250", 'tabindex -> 1) |
|
20 | 20 |
</label> |
21 | 21 |
<label for="content"> |
22 |
- @helper.textarea(form("contents"), 'markdown -> true, 'class->"text content") |
|
22 |
+ @helper.textarea(form("contents"), 'markdown -> true, 'class->"text content", 'tabindex -> 2) |
|
23 | 23 |
</label> |
24 | 24 |
@if(UserApp.currentUser() != UserApp.anonymous) { |
25 | 25 |
<div id="upload" resourceType=@Resource.BOARD_POST></div> |
--- app/views/issue/editIssue.scala.html
+++ app/views/issue/editIssue.scala.html
... | ... | @@ -28,7 +28,8 @@ |
28 | 28 |
'_label-> null, |
29 | 29 |
'class -> "title", |
30 | 30 |
'onkeypress -> "return event.keyCode !== 13", |
31 |
- 'maxlength -> "250" |
|
31 |
+ 'maxlength -> "250", |
|
32 |
+ 'tabindex -> 1 |
|
32 | 33 |
) |
33 | 34 |
@textarea( |
34 | 35 |
issueForm("body"), |
... | ... | @@ -36,7 +37,9 @@ |
36 | 37 |
'_label-> null, |
37 | 38 |
'rows -> 16, |
38 | 39 |
'markdown -> true, |
39 |
- 'class -> "textbody") |
|
40 |
+ 'class -> "textbody", |
|
41 |
+ 'tabindex -> 2 |
|
42 |
+ ) |
|
40 | 43 |
<div id="upload" resourceType=@Resource.ISSUE_POST resourceId=@issue.id></div> |
41 | 44 |
</fieldset> |
42 | 45 |
|
--- app/views/issue/newIssue.scala.html
+++ app/views/issue/newIssue.scala.html
... | ... | @@ -30,7 +30,8 @@ |
30 | 30 |
'class -> "title", |
31 | 31 |
'placeholder -> Messages("post.new.title"), |
32 | 32 |
'onkeypress -> "return event.keyCode !== 13", |
33 |
- 'maxlength -> "250" |
|
33 |
+ 'maxlength -> "250", |
|
34 |
+ 'tabindex -> 1 |
|
34 | 35 |
) |
35 | 36 |
@textarea( |
36 | 37 |
issueForm("body"), |
... | ... | @@ -38,7 +39,9 @@ |
38 | 39 |
'_label -> null, |
39 | 40 |
'rows -> 16, |
40 | 41 |
'class -> "textbody", |
41 |
- 'markdown -> true) |
|
42 |
+ 'markdown -> true, |
|
43 |
+ 'tabindex -> 2 |
|
44 |
+ ) |
|
42 | 45 |
@if(UserApp.currentUser() != UserApp.anonymous) { |
43 | 46 |
<div id="upload" resourceType=@Resource.ISSUE_POST></div> |
44 | 47 |
} |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?