source: branches/htmlform/templates/widgets.js@ 512

Last change on this file since 512 was 511, checked in by Kris Deugau, 12 years ago

/branches/htmlform

Final prep for merge back to trunk.

  • Remove lockin on /ip/ web path as with /branches/stable r507.
  • Fix a buglet with the body text color.
  • Remove the lingering header and footer template files

See #3.

File size: 1.1 KB
Line 
1function webPath() {
2 var mypath = "";
3 var pathbits = window.location.pathname.split( '/' );
4 for ( i = 0; i <= pathbits.length-2; i++ ) {
5 mypath += pathbits[i];
6 mypath += "/";
7 }
8 return mypath;
9}
10
11function openHelp() {
12 window.open(webPath() + "help.html", "help_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=400")
13}
14function openTables() {
15 window.open(webPath() + "tables.html", "subnet_tables", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=250")
16}
17function helpAllocTypes() {
18 window.open(webPath() + "alloctypes.html", "alloc_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750,height=550")
19}
20function popNotes(page) {
21 window.open(page, "IPDB_notes", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=300");
22}
23function redoParent() {
24 opener.location.reload(true);
25}
Note: See TracBrowser for help on using the repository browser.