Changeset 617


Ignore:
Timestamp:
12/06/06 13:03:34 (13 years ago)
Author:
ray
Message:
  • htmlarea.js: Ticket #870 fixRelativeLinks strips baseHref from content
  • enter-paragraphs.js: corrected misspelled breal => break
  • popup.js: added th to translated tags
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r616 r617  
    52265226    if ( typeof this.config.baseHref != 'undefined' && this.config.baseHref !== null ) 
    52275227    { 
    5228       baseRe = new RegExp(this.config.baseHref.replace(HTMLArea.RE_Specials, '\\$1'), 'g'); 
     5228      baseRe = new RegExp( "((href|src|background)=\")(" + this.config.baseHref.replace( HTMLArea.RE_Specials, '\\$1' ) + ")", 'g' ); 
    52295229    } 
    52305230    else 
    52315231    { 
    5232       baseRe = new RegExp(document.location.href.replace(/([^\/]*\/?)$/, '').replace(HTMLArea.RE_Specials, '\\$1'), 'g'); 
    5233     } 
    5234  
    5235     html = html.replace(baseRe, ''); 
     5232      baseRe = new RegExp( "((href|src|background)=\")(" + document.location.href.replace( /([^\/]*\/?)$/, '' ).replace( HTMLArea.RE_Specials, '\\$1' ) + ")", 'g' ); 
     5233    } 
     5234 
     5235    html = html.replace(baseRe, '$1'); 
    52365236  } 
    52375237 
  • trunk/plugins/EnterParagraphs/enter-paragraphs.js

    r501 r617  
    427427 
    428428                    return new Array(true, false ); 
    429                                 breal; 
     429                                break; 
    430430 
    431431                        case "find_cursorpoint": 
  • trunk/popups/popup.js

    r594 r617  
    105105 
    106106function __dlg_translate(context) { 
    107         var types = ["input", "select", "legend", "span", "option", "td", "button", "div", "label", "a", "img"]; 
     107        var types = ["input", "select", "legend", "span", "option", "td", "th", "button", "div", "label", "a", "img"]; 
    108108        for (var type = 0; type < types.length; ++type) { 
    109109                var spans = document.getElementsByTagName(types[type]); 
Note: See TracChangeset for help on using the changeset viewer.