Skip to content

Commit

Permalink
Merge pull request #588 from alicolville/add-add-edit-anchor
Browse files Browse the repository at this point in the history
Jump to correct place on page [wt-tabe]
  • Loading branch information
alicolville authored Feb 16, 2024
2 parents 2961011 + 351feef commit 77f23d4
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 18 deletions.
2 changes: 1 addition & 1 deletion assets/js/data.footable.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jQuery( document ).ready(function ( $, undefined ) {
var url = ws_user_table_config[ 'edit-url' ];
url = url.replace( '|ws-id|', values.db_row_id );

window.location.href = url + '&user-id=' + values.user_id + '&redirect=' + ws_user_table_config[ 'current-url-base64' ];
window.location.href = url + '&user-id=' + values.user_id + '&redirect=' + ws_user_table_config[ 'current-url-base64' ] + '#' + $( table_id ).data( 'jump-to' );
} else {
window.location.href = ws_user_table_config[ 'base-url' ] + '&mode=entry&user-id=' + values.user_id + '&entry-id=' + values.db_row_id + '&redirect=' + ws_user_table_config[ 'current-url-base64' ];
}
Expand Down
Loading

0 comments on commit 77f23d4

Please sign in to comment.