diff options
Diffstat (limited to 'chrome/installer/setup/eula/oem.js')
-rw-r--r-- | chrome/installer/setup/eula/oem.js | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/chrome/installer/setup/eula/oem.js b/chrome/installer/setup/eula/oem.js index 5831b34..e142911 100644 --- a/chrome/installer/setup/eula/oem.js +++ b/chrome/installer/setup/eula/oem.js @@ -1,26 +1,26 @@ -function setInnerFrame() {
- var regex = new RegExp("\\?innerframe=\"?([^&#\"]*)\"?");
- var results = regex.exec(window.location.href);
- if(results && results[1])
- document.getElementById('ifr').src = results[1];
-}
-
-function checkAccept(f) {
- if (f.accept.checked) {
- window.returnValue = 6;
- } else {
- window.returnValue = 1;
- }
- window.close();
-}
-
-function resize() {
- var ifr = document.getElementById('ifr');
- var footer = document.getElementById('footer');
-
- ifr.height = footer.offsetTop - ifr.offsetTop;
- setInnerFrame();
-}
-
-window.onresize = resize;
+function setInnerFrame() { + var inner_frame = window.dialogArguments; + if (inner_frame) { + document.getElementById('ifr').src = inner_frame; + } +} + +function checkAccept(f) { + if (f.accept.checked) { + window.returnValue = 6; + } else { + window.returnValue = 1; + } + window.close(); +} + +function resize() { + var ifr = document.getElementById('ifr'); + var footer = document.getElementById('footer'); + + ifr.height = footer.offsetTop - ifr.offsetTop; + setInnerFrame(); +} + +window.onresize = resize; window.onload = resize;
\ No newline at end of file |