Skip to content
Permalink
Browse files

FIX JENKINS-13737

- Workaround issue with eval'd jscript code by making the variable window level (global)
  • Loading branch information
slide committed May 16, 2012
1 parent 286bcfa commit ee715fbd1bd81e83cb9501c311fd04f309431a2c
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/config.jelly
@@ -10,7 +10,7 @@
<j:set var="secId" value="emailext-${h.generateId()}-"/>
<st:once>
<script type="text/javascript" src="${rootURL}/plugin/email-ext/scripts/emailext-behavior.js"></script>
<script type="text/javascript">var emailExtInit = new Array();</script>
<script type="text/javascript">window.emailExtInit = new Array();</script>
</st:once>

<!-- This is the project recipent list entry. -->
@@ -262,8 +262,8 @@

<j:if test="${!instance.configured}">
<script type="text/javascript">
if (!emailExtInit['${secId}']) addTrigger('Failure','${secId}');
emailExtInit['${secId}'] = 1;
if (!window.emailExtInit['${secId}']) addTrigger('Failure','${secId}');
window.emailExtInit['${secId}'] = 1;
</script>
</j:if>
</j:jelly>

0 comments on commit ee715fb

Please sign in to comment.
You can’t perform that action at this time.