Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
archery
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
archery
Commits
d6cad45c
Commit
d6cad45c
authored
Oct 07, 2017
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix number tab navigation in Chrome on Android
parent
abf688b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
coffee/scores.coffee
coffee/scores.coffee
+13
-1
No files found.
coffee/scores.coffee
View file @
d6cad45c
...
@@ -88,6 +88,19 @@ if table.classList.contains 'match-editable'
...
@@ -88,6 +88,19 @@ if table.classList.contains 'match-editable'
localStorage
.
removeItem
'hide-total-scores'
localStorage
.
removeItem
'hide-total-scores'
render
0
render
0
# cancel form submission on Enter press, go to the next input field instead
form
=
table
.
parentNode
submit_button
=
form
.
querySelector
(
'button[type=submit]'
)
nextelems
=
new
WeakMap
()
nextelems
.
set
input
,
inputs
[(
i
+
1
)
%
inputs
.
length
]
for
input
,
i
in
inputs
nextelems
.
set
inputs
[
inputs
.
length
-
1
],
submit_button
table
.
addEventListener
'keypress'
,
(
e
)
->
if
e
.
key
==
'Enter'
nextelems
.
get
(
e
.
srcElement
).
focus
()
e
.
preventDefault
()
# notes area grows automatically with each added line
# notes area grows automatically with each added line
if
notes
=
document
.
getElementById
(
'notes'
)
if
notes
=
document
.
getElementById
(
'notes'
)
cb
=
->
cb
=
->
...
@@ -114,4 +127,3 @@ toggle_color.addEventListener 'click', ->
...
@@ -114,4 +127,3 @@ toggle_color.addEventListener 'click', ->
else
else
localStorage
.
removeItem
'colored-scores'
localStorage
.
removeItem
'colored-scores'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment