Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
d903dc58
Verified
Commit
d903dc58
authored
Aug 08, 2019
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pedagogy: correctly fill star widget when editing comment
parent
38ef13d9
Pipeline
#1932
passed with stage
in 24 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
pedagogy/templates/pedagogy/starlist.jinja
pedagogy/templates/pedagogy/starlist.jinja
+8
-0
No files found.
pedagogy/templates/pedagogy/starlist.jinja
View file @
d903dc58
...
...
@@ -15,6 +15,7 @@
</style>
{# Do not vote button #}
<label
class=
"star"
>
<input
type=
"radio"
name=
"
{{
widget.name
}}
"
value=
"-1"
onclick=
'
var stars = document.getElementsByClassName("
{{
widget.name
}}
");
...
...
@@ -27,6 +28,8 @@
'
checked
>
<span
class=
"fa fa-times-circle"
>
{{
translations.do_not_vote
}}
</span>
</label>
{# Star widget #}
{%
for
i
in
number_of_stars
%}
<label
class=
"star"
>
<input
type=
"radio"
name=
"
{{
widget.name
}}
"
value=
"
{{
forloop.counter0
}}
"
onclick=
'
...
...
@@ -47,4 +50,9 @@
</label>
{%
endfor
%}
{# Restaure previous (-1 is default) #}
<script
type=
"text/javascript"
>
document
.
querySelector
(
"
input[name='
{{
widget.name
}}
'][value='
{{
widget.value
}}
']
"
).
click
()
</script>
</div>
\ No newline at end of file
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