Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
27e69fd3
Commit
27e69fd3
authored
Jan 18, 2017
by
Skia
🤘
Browse files
Bad hack to fix Firefox broken autofocus
parent
e8b69def
Pipeline
#742
passed with stage
in 3 minutes and 29 seconds
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
counter/templates/counter/counter_click.jinja
View file @
27e69fd3
...
...
@@ -51,7 +51,7 @@
<form
method=
"post"
action=
"
{{
url
(
'counter:click'
,
counter_id
=
counter.id
,
user_id
=
customer.user.id
)
}}
"
>
{%
csrf_token
%}
<input
type=
"hidden"
name=
"action"
value=
"code"
>
<input
type=
"input"
name=
"code"
value=
""
autofocus
class=
"focus"
id=
"code_field"
/>
<input
type=
"input"
name=
"code"
value=
""
class=
"focus"
id=
"code_field"
/>
<input
type=
"submit"
value=
"
{%
trans
%}
Go
{%
endtrans
%}
"
/>
</form>
<p>
{%
trans
%}
Basket:
{%
endtrans
%}
</p>
...
...
@@ -179,6 +179,7 @@ $( function() {
}
});
$
(
"
#products
"
).
tabs
();
$
(
"
#code_field
"
).
focus
();
});
</script>
{%
endblock
%}
...
...
Write
Preview
Supports
Markdown
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