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
allgo
allgo
Commits
e44d3038
Commit
e44d3038
authored
Mar 02, 2017
by
BAIRE Anthony
Browse files
fix the copy of webapp parameters into the job form
parent
13708cb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
rails/app/views/webapp_parameters/_webapp_parameter.html.erb
View file @
e44d3038
<%
if
not
webapp_parameter
.
detail
.
blank?
%>
<p>
<i
class=
"fa fa-code fa-4"
></i>
<a
class=
"param lead"
href=
"#"
>
<%=
webapp_parameter
.
detail
%>
</a>
:
<span
class=
"param_value lead"
>
<%=
webapp_parameter
.
value
%>
</span>
<a
class=
"param lead"
href=
"javascript:void(0)"
data-value=
"
<%=
webapp_parameter
.
value
%>
"
>
<%=
webapp_parameter
.
detail
%>
</a>
:
<span
class=
"param_value lead"
>
<%=
webapp_parameter
.
value
%>
</span>
<script
type=
"text/javascript"
>
<%# attach callback to each webapp_parameter to copy it into the job form %>
$
(
"
a.param
"
).
click
(
function
(
ev
)
{
$
(
"
#text_param
"
).
val
(
$
(
ev
.
target
).
attr
(
"
data-value
"
))
});
</script>
</p>
<%
end
%>
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