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

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

Issue 7309008: Change the system-level EULA dialog to not use GET parameters with res:// urls. Instead use the d... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/setup_main.cc » ('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() { 1 function setInnerFrame() {
2 var regex = new RegExp("\\?innerframe=\"?([^&#\"]*)\"?"); 2 var inner_frame = window.dialogArguments;
3 var results = regex.exec(window.location.href); 3 if (inner_frame) {
4 if(results && results[1]) 4 document.getElementById('ifr').src = inner_frame;
5 document.getElementById('ifr').src = results[1]; 5 }
6 } 6 }
7 7
8 function checkAccept(f) { 8 function checkAccept(f) {
9 if (f.accept.checked) { 9 if (f.accept.checked) {
10 window.returnValue = 6; 10 window.returnValue = 6;
11 } else { 11 } else {
12 window.returnValue = 1; 12 window.returnValue = 1;
13 } 13 }
14 window.close(); 14 window.close();
15 } 15 }
16 16
17 function resize() { 17 function resize() {
18 var ifr = document.getElementById('ifr'); 18 var ifr = document.getElementById('ifr');
19 var footer = document.getElementById('footer'); 19 var footer = document.getElementById('footer');
20 20
21 ifr.height = footer.offsetTop - ifr.offsetTop; 21 ifr.height = footer.offsetTop - ifr.offsetTop;
22 setInnerFrame(); 22 setInnerFrame();
23 } 23 }
24 24
25 window.onresize = resize; 25 window.onresize = resize;
26 window.onload = resize; 26 window.onload = resize;
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698