summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/eula/oem.js
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 00:52:17 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 00:52:17 +0000
commit64fcca73ef6067346597989f641488ada57ba1ea (patch)
tree55239f769b7238627673881368ba57896c0855a4 /chrome/installer/setup/eula/oem.js
parentcd3414054bcd0f6590342f89c43f8da676e377ae (diff)
downloadchromium_src-64fcca73ef6067346597989f641488ada57ba1ea.zip
chromium_src-64fcca73ef6067346597989f641488ada57ba1ea.tar.gz
chromium_src-64fcca73ef6067346597989f641488ada57ba1ea.tar.bz2
Wire the eula and the dialog display code
- html, css and js to live in the installer as resources. The right combo of resources is selected based on system lang - currently the approach is to have chrome show the eula by spawing setup.exe --show-eula BUG=1468838 Review URL: http://codereview.chromium.org/18732 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8690 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup/eula/oem.js')
-rw-r--r--chrome/installer/setup/eula/oem.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/installer/setup/eula/oem.js b/chrome/installer/setup/eula/oem.js
new file mode 100644
index 0000000..2b0bcbd
--- /dev/null
+++ b/chrome/installer/setup/eula/oem.js
@@ -0,0 +1,18 @@
+function checkAccept(f) {
+ if (f.accept.checked) {
+ window.returnValue = 1;
+ } else {
+ window.returnValue = 2;
+ }
+ window.close();
+}
+
+function resize() {
+ var ifr = document.getElementById('ifr');
+ var footer = document.getElementById('footer');
+
+ ifr.height = footer.offsetTop - ifr.offsetTop;
+}
+
+window.onresize = resize;
+window.onload = resize; \ No newline at end of file