Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-24662] Hacky work-around for this issue while we wait for a …
…core fix
  • Loading branch information
stephenc committed May 24, 2016
1 parent 82b63f8 commit a5e5672
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
Expand Up @@ -34,17 +34,21 @@
<l:main-panel>
<j:set var="descriptor" value="${it.descriptor}"/>
<j:set var="instance" value="${it}"/>
<f:form action="updateSubmit" method="POST" name="update">
<j:set var="instance" value="${instance.credentials}" />
<j:set var="descriptor" value="${instance.descriptor}"/>
<f:invisibleEntry>
<input type="hidden" name="stapler-class" value="${descriptor.clazz.name}" />
</f:invisibleEntry>
<st:include from="${descriptor}" page="${descriptor.configPage}" />
<f:bottomButtonBar>
<f:submit value="${%Save}"/>
</f:bottomButtonBar>
</f:form>
<f:form action="updateSubmit" method="POST" name="update">
<j:set var="instance" value="${instance.credentials}" />
<j:set var="descriptor" value="${instance.descriptor}"/>
<f:invisibleEntry>
<input type="hidden" name="stapler-class" value="${descriptor.clazz.name}" />
</f:invisibleEntry>
<st:include from="${descriptor}" page="${descriptor.configPage}" />
<f:bottomButtonBar>
<f:submit value="${%Save}"/>
</f:bottomButtonBar>
</f:form>
<script>
// TODO remove this JENKINS-24662 workaround when baseline core has fix for root cause
window.setTimeout(function(){layoutUpdateCallback.call();}, 1000);
</script>
</l:main-panel>
</l:layout>
</j:jelly>
Expand Up @@ -71,6 +71,10 @@
}
updateSave(saveButton.getForm());
window.setTimeout(function () {
// TODO remove this JENKINS-24662 workaround when baseline core has fix for root cause
layoutUpdateCallback.call();
}, 1000);
]]></script>
</l:main-panel>
</l:layout>
Expand Down
Expand Up @@ -53,6 +53,10 @@
<f:submit value="${%OK}"/>
</f:bottomButtonBar>
</f:form>
<script>
// TODO remove this JENKINS-24662 workaround when baseline core has fix for root cause
window.setTimeout(function(){layoutUpdateCallback.call();}, 1000);
</script>
</l:main-panel>
</l:layout>
</j:jelly>
Expand Up @@ -49,6 +49,10 @@
<f:apply/>
</f:bottomButtonBar>
</f:form>
<script>
// TODO remove this JENKINS-24662 workaround when baseline core has fix for root cause
window.setTimeout(function(){layoutUpdateCallback.call();}, 1000);
</script>
</l:main-panel>
</l:layout>
</j:jelly>

0 comments on commit a5e5672

Please sign in to comment.