source: trunk/templates/widgets.js@ 517

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

/trunk

Finally merge conversion to HTML::Template from /branches/htmlform

  • Node "hack" showed conflict due to having been added to all branches in parallel
  • editDisplay.html was apparently changed enough that the merged delete caused an irrelevant conflict

Closes #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 if (pathbits[i] != 'cgi-bin') {
6 mypath += pathbits[i];
7 mypath += "/";
8 }
9 }
10 return mypath;
11}
12
13function openHelp() {
14 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")
15}
16function openTables() {
17 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")
18}
19function helpAllocTypes() {
20 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")
21}
22function popNotes(page) {
23 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");
24}
25function redoParent() {
26 opener.location.reload(true);
27}
Note: See TracBrowser for help on using the repository browser.