Show
Ignore:
Timestamp:
2008-04-01 00:02:44 (5 months ago)
Author:
wwalc
Message:

Additional fix for #1882 (interlanguage links).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • MediaWiki/trunk/plugins/mediawiki/dialogs/link.html

    r1830 r1859  
    4646        FCK.Selection.SelectNode( oLink ) ; 
    4747 
     48var bLinkEqualsName     = false ; 
     49         
    4850window.onload = function() 
    4951{ 
     
    6769        if ( sHRef == null ) 
    6870                sHRef = oLink.getAttribute( 'href' , 2 ) || '' ; 
     71                 
     72        if ( sHRef == oLink.innerHTML ) 
     73                bLinkEqualsName = true ; 
    6974 
    7075        GetE('txtUrl').value = sHRef ; 
     
    205210                SetAttribute( oLink, '_fcksavedurl', sUri ) ; 
    206211 
    207                 oLink.innerHTML = sInnerHtml ;          // Set (or restore) the innerHTML 
     212                if ( bLinkEqualsName ) 
     213                        oLink.innerHTML = sUri ; 
     214                else 
     215                        oLink.innerHTML = sInnerHtml ;          // Set (or restore) the innerHTML 
    208216 
    209217        }