Changeset 973


Ignore:
Timestamp:
02/07/08 14:44:12 (11 years ago)
Author:
gogo
Message:

Ticket:1151 action attribute of forms needed to have relative links fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r969 r973  
    50205020    if ( typeof this.config.baseHref != 'undefined' && this.config.baseHref !== null ) 
    50215021    { 
    5022       baseRe = new RegExp( "((href|src|background)=\")(" + Xinha.escapeStringForRegExp(this.config.baseHref.replace(/([^\/]\/)(?=.+\.)[^\/]*$/, "$1")) + ")", 'g' ); 
     5022      baseRe = new RegExp( "((href|src|background|action)=\")(" + Xinha.escapeStringForRegExp(this.config.baseHref.replace(/([^\/]\/)(?=.+\.)[^\/]*$/, "$1")) + ")", 'g' ); 
    50235023    } 
    50245024    else 
    50255025    { 
    5026       baseRe = new RegExp( "((href|src|background)=\")(" +  Xinha.escapeStringForRegExp(document.location.href.replace( /^(https?:\/\/[^\/]*)(.*)/, '$1' )) + ")", 'g' ); 
     5026      baseRe = new RegExp( "((href|src|background|action)=\")(" +  Xinha.escapeStringForRegExp(document.location.href.replace( /^(https?:\/\/[^\/]*)(.*)/, '$1' )) + ")", 'g' ); 
    50275027    } 
    50285028 
Note: See TracChangeset for help on using the changeset viewer.