Ticket #6607: 6607.patch

File 6607.patch, 973 bytes (added by Tobiasz Cudnik, 13 years ago)
  • _source/plugins/tabletools/plugin.js

     
    464464                        var targetCell;
    465465                        try
    466466                        {
     467              var rowspan = parseInt( firstCell.getAttribute( 'rowspan' ), 10 ) || 1;
     468              var colspan = parseInt( firstCell.getAttribute( 'colspan' ), 10 ) || 1;
     469
    467470                                targetCell =
    468471                                        map[ mergeDirection == 'up' ?
    469                                                         ( startRow - 1 ):
    470                                                         mergeDirection == 'down' ? ( startRow + 1 ) : startRow  ] [
     472                                                        ( startRow - rowspan ):
     473                                                        mergeDirection == 'down' ? ( startRow + rowspan ) : startRow  ] [
    471474                                                 mergeDirection == 'left' ?
    472                                                         ( startColumn - 1 ):
    473                                                  mergeDirection == 'right' ?  ( startColumn + 1 ) : startColumn ];
     475                                                        ( startColumn - colspan ):
     476                                                 mergeDirection == 'right' ?  ( startColumn + colspan ) : startColumn ];
    474477
    475478                        }
    476479                        catch( er )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy