[Notice] Announcing the End of Demo Server [Read me]
Yi EungJun 2013-01-23
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
+++ app/views/board/editPost.scala.html
@@ -17,10 +17,10 @@
         </div>
       </div>
       <label for="title">
-        @helper.inputText(form("title"), 'class->"text title", 'placeholder -> Messages("post.new.title"), 'maxlength -> "250")
+        @helper.inputText(form("title"), 'class->"text title", 'placeholder -> Messages("post.new.title"), 'maxlength -> "250", 'tabindex -> 1)
       </label>
       <label for="content">
-        @helper.textarea(form("contents"), 'markdown -> true, 'class->"text content")
+        @helper.textarea(form("contents"), 'markdown -> true, 'class->"text content", 'tabindex -> 2)
         <div id="upload" resourceType=@Resource.BOARD_POST resourceId=@postId></div>
       </label>
       <!--
app/views/board/newPost.scala.html
--- app/views/board/newPost.scala.html
+++ app/views/board/newPost.scala.html
@@ -16,10 +16,10 @@
         </div>
       </div>
       <label for="title">
-        @helper.inputText(form("title"), 'class->"text title", 'placeholder -> Messages("post.new.title"), 'maxlength -> "250")
+        @helper.inputText(form("title"), 'class->"text title", 'placeholder -> Messages("post.new.title"), 'maxlength -> "250", 'tabindex -> 1)
       </label>
       <label for="content">
-        @helper.textarea(form("contents"), 'markdown -> true, 'class->"text content")
+        @helper.textarea(form("contents"), 'markdown -> true, 'class->"text content", 'tabindex -> 2)
       </label>
       @if(UserApp.currentUser() != UserApp.anonymous) {
       <div id="upload" resourceType=@Resource.BOARD_POST></div>
app/views/issue/editIssue.scala.html
--- app/views/issue/editIssue.scala.html
+++ app/views/issue/editIssue.scala.html
@@ -28,7 +28,8 @@
            '_label-> null,
            'class -> "title",
            'onkeypress -> "return event.keyCode !== 13",
-           'maxlength -> "250"
+           'maxlength -> "250",
+           'tabindex -> 1
            )
         @textarea(
            issueForm("body"),
@@ -36,7 +37,9 @@
            '_label-> null,
            'rows -> 16,
            'markdown -> true,
-           'class -> "textbody")
+           'class -> "textbody",
+           'tabindex -> 2
+           )
         <div id="upload" resourceType=@Resource.ISSUE_POST resourceId=@issue.id></div>
     </fieldset>
 
app/views/issue/newIssue.scala.html
--- app/views/issue/newIssue.scala.html
+++ app/views/issue/newIssue.scala.html
@@ -30,7 +30,8 @@
             'class -> "title",
             'placeholder -> Messages("post.new.title"),
             'onkeypress -> "return event.keyCode !== 13",
-            'maxlength -> "250"
+            'maxlength -> "250",
+            'tabindex -> 1
             )
         @textarea(
             issueForm("body"),
@@ -38,7 +39,9 @@
             '_label -> null,
             'rows -> 16,
             'class -> "textbody",
-            'markdown -> true)
+            'markdown -> true,
+            'tabindex -> 2
+            )
         @if(UserApp.currentUser() != UserApp.anonymous) {
         <div id="upload" resourceType=@Resource.ISSUE_POST></div>
         }
Add a comment
List