Skip to content

Commit

Permalink
[FIXED JENKINS-20772] Properly render response in case Apply results …
Browse files Browse the repository at this point in the history
…in an error page.

(cherry picked from commit 0e8195c)
  • Loading branch information
jglick authored and olivergondza committed Jan 9, 2014
1 parent 5d19263 commit eec3d65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/resources/lib/form/apply/apply.js
Expand Up @@ -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");
Expand Down

0 comments on commit eec3d65

Please sign in to comment.