Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(754)

Side by Side Diff: chrome/installer/setup/eula/oem.js

Issue 50039: Modifes the in-application EULA outer frame to take a parameter ('innerframe'... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/installer/setup/eula/oem_ar.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function setInnerFrame() {
2 var regex = new RegExp("\\?innerframe=\"?([^&#\"]*)\"?");
3 var results = regex.exec(window.location.href);
4 if(results && results[1])
5 document.getElementById('ifr').src = results[1];
6 }
7
1 function checkAccept(f) { 8 function checkAccept(f) {
2 if (f.accept.checked) { 9 if (f.accept.checked) {
3 window.returnValue = 6; 10 window.returnValue = 6;
4 } else { 11 } else {
5 window.returnValue = 1; 12 window.returnValue = 1;
6 } 13 }
7 window.close(); 14 window.close();
8 } 15 }
9 16
10 function resize() { 17 function resize() {
11 var ifr = document.getElementById('ifr'); 18 var ifr = document.getElementById('ifr');
12 var footer = document.getElementById('footer'); 19 var footer = document.getElementById('footer');
13 20
14 ifr.height = footer.offsetTop - ifr.offsetTop; 21 ifr.height = footer.offsetTop - ifr.offsetTop;
22 setInnerFrame();
15 } 23 }
16 24
17 window.onresize = resize; 25 window.onresize = resize;
18 window.onload = resize; 26 window.onload = resize;
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/setup/eula/oem_ar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698