Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-19826] element.setAttribute('name', …) does not work i…
…n IE in compatibility mode, so use prototype’s Element(…) which does.

(cherry picked from commit dda099c)

Conflicts:
	changelog.html
  • Loading branch information
jglick authored and olivergondza committed Feb 15, 2014
1 parent 3986566 commit eca76d7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/src/main/resources/lib/form/apply/apply.js
Expand Up @@ -29,10 +29,7 @@ Behaviour.specify("INPUT.apply-button", 'apply', 0, function (e) {

// create a throw-away IFRAME to avoid back button from loading the POST result back
id = "iframe"+(iota++);
target = document.createElement("iframe");
target.setAttribute("id",id);
target.setAttribute("name",id);
target.setAttribute("style","height:100%; width:100%");
target = Element('iframe', {id: id, name: id, style: 'height:100%; width:100%'});
$(containerId).appendChild(target);

attachIframeOnload(target, function () {
Expand Down Expand Up @@ -80,4 +77,4 @@ Behaviour.specify("INPUT.apply-button", 'apply', 0, function (e) {
f.target = null;
}
});
});
});

0 comments on commit eca76d7

Please sign in to comment.