Changeset 514


Ignore:
Timestamp:
10/17/12 16:35:15 (11 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Fix bug introduced with last update to widgets.js; on pages
where the URL is ".../cgi-bin/main.cgi?..." the webpath function
would mistakenly include the cgi-bin part.
See #3.

File:
1 edited

Legend:

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

    r511 r514  
    33        var pathbits = window.location.pathname.split( '/' );
    44        for ( i = 0; i <= pathbits.length-2; i++ ) {
    5                 mypath += pathbits[i];
    6                 mypath += "/";
     5                if (pathbits[i] != 'cgi-bin') {
     6                        mypath += pathbits[i];
     7                        mypath += "/";
     8                }
    79        }
    810        return mypath;
Note: See TracChangeset for help on using the changeset viewer.