Ignore:
Timestamp:
09/27/12 18:13:16 (12 years ago)
Author:
Kris Deugau
Message:

/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:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform/templates/widgets.js

    r459 r511  
     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
    111function 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")
    313}
    414function 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") 
    616}
    717function 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")
    919}
    1020function popNotes(page) {
Note: See TracChangeset for help on using the changeset viewer.