Changeset 1601

Show
Ignore:
Timestamp:
2008-02-24 16:12:23 (5 months ago)
Author:
alfonsoml
Message:

little fix in #676, reuse the existing function.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/dialog/common/fck_dialog_common.js

    r1598 r1601  
    274274                        { 
    275275                                CopyAttributes( oldNode, oNewNode, oAttributes ) ; 
    276                                 MoveContents( oldNode, oNewNode ) ; 
     276                                oEditor.FCKDomTools.MoveChildren( oldNode, oNewNode ) ; 
    277277                                oldNode.parentNode.removeChild( oldNode ) ; 
    278278                                oldNode = null ; 
     
    337337} 
    338338 
    339 // Move the contents from one node to the other 
    340 function MoveContents( oSource, oDest ) 
    341 { 
    342         while ( oSource.firstChild ) 
    343         { 
    344                 var oNode = oSource.removeChild( oSource.firstChild ) ; 
    345                 oDest.appendChild( oNode ) ; 
    346         } 
    347 }