Ticket #5839: 5839.patch

File 5839.patch, 795 bytes (added by Martin, 9 years ago)

Patch

  • _source/plugins/tabletools/plugin.js

     
    148148                // Create a clone of the row.
    149149                var newRow = row.clone( true );
    150150
    151                 // Insert the new row before of it.
    152                 newRow.insertBefore( row );
     151                if( insertBefore )
     152                        newRow.insertBefore( row );
     153                else
     154                        newRow.insertAfter( row );
    153155
    154                 // Clean one of the rows to produce the illusion of inserting an empty row
    155                 // before or after.
    156                 clearRow( insertBefore ? newRow.$ : row.$ );
     156                // Clean new row to produce the illusion of inserting an empty row
     157                clearRow( newRow.$ );
    157158        }
    158159
    159160        function deleteRows( selectionOrRow )
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy