Skip to content
Permalink
Browse files
[FIXED JENKINS-20772] Properly render response in case Apply results …
…in an error page.

(cherry picked from commit 0e8195c)
  • Loading branch information
jglick authored and olivergondza committed Jan 9, 2014
1 parent 5d19263 commit eec3d65cdf865bcd19edae15d0ca6e581553db78
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/src/main/resources/lib/form/apply/apply.js
@@ -41,6 +41,8 @@ Behaviour.specify("INPUT.apply-button", 'apply', 0, function (e) {
target.contentWindow.applyCompletionHandler(window);
} else {
// otherwise this is possibly an error from the server, so we need to render the whole content.
var doc = target.contentDocument || target.contentWindow.document;
$(containerId).appendChild(doc.getElementsByTagName('body')[0]);
var r = YAHOO.util.Dom.getClientRegion();
responseDialog.cfg.setProperty("width",r.width*3/4+"px");
responseDialog.cfg.setProperty("height",r.height*3/4+"px");

0 comments on commit eec3d65

Please sign in to comment.