Skip to content

Commit d80c089

Browse files
yaroslavafenkinbasil
authored andcommitted
[JENKINS-73886] Remove inline JS in ScriptlerManagement/runScript.jelly
1 parent a157cb6 commit d80c089

File tree

1 file changed

+1
-2
lines changed
  • src/main/resources/org/jenkinsci/plugins/scriptler/ScriptlerManagement

1 file changed

+1
-2
lines changed

src/main/resources/org/jenkinsci/plugins/scriptler/ScriptlerManagement/runScript.jelly

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ THE SOFTWARE.
9797
</tr>
9898
</table>
9999

100-
<textarea id="script" name="script" class="${h.isUnitTest ? '' : 'script'}">
100+
<textarea id="script" autofocus="" name="script" class="${h.isUnitTest ? '' : 'script'}">
101101
<j:choose>
102102
<j:when test="${scriptNotFound}">
103103
${%ScriptNotFound}
@@ -121,7 +121,6 @@ THE SOFTWARE.
121121
<div align="right">
122122
<f:submit value="${%Run}" name="run" />
123123
</div>
124-
<script>document.getElementById('script').focus();</script>
125124
</form>
126125
<j:if test="${output!=null}">
127126
<h2>${%Result}</h2>

0 commit comments

Comments
 (0)