Changeset 511 for branches/htmlform/templates/widgets.js
- Timestamp:
- 09/27/12 18:13:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/htmlform/templates/widgets.js
r459 r511 1 function 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 1 11 function openHelp() { 2 window.open( "/ip/help.html", "help_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=700,height=400")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") 3 13 } 4 14 function openTables() { 5 window.open( "/ip/tables.html", "subnet_tables", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=250")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") 6 16 } 7 17 function helpAllocTypes() { 8 window.open( "/ip/alloctypes.html", "alloc_window", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750,height=550")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") 9 19 } 10 20 function popNotes(page) {
Note:
See TracChangeset
for help on using the changeset viewer.