Skip to content

Commit

Permalink
feat:Remove inline javascript code from Cloudbees workflow (#319)
Browse files Browse the repository at this point in the history
* feat:Remove inline javascript code from Cloudbees workflow

* feat:Remove inline javascript code from Cloudbees workflow

Co-authored-by: Kevin Guerroudj <91883215+Kevin-CB@users.noreply.github.com>

---------

Co-authored-by: Kevin Guerroudj <91883215+Kevin-CB@users.noreply.github.com>
  • Loading branch information
NeetigyaPod and Kevin-CB committed Oct 27, 2023
1 parent 5779a96 commit 0b5fcd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
Optional fragment caption, passed through to the controller.
</st:attribute>
</st:documentation>
<script>var timeZone = '${it.timeZone}';</script>
<div id='timeparam' data-time='${it.timeZone}'/>
<st:adjunct includes="com.cloudbees.workflow.controllerScript"/>
<div class="cbwf-stage-view">
<div cbwf-controller="${name}" objectUrl="${rootURL}/${it.target.url}" fragCaption="${fragCaption}" />
<st:adjunct includes="org.jenkinsci.pipeline.stageview_adjunct"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var timeZone = document.querySelector('#timeparam').dataset.time;

0 comments on commit 0b5fcd6

Please sign in to comment.