|
Lines 378-387
Link Here
|
| 378 |
}); |
378 |
}); |
| 379 |
|
379 |
|
| 380 |
// Apply DataTables on the results table |
380 |
// Apply DataTables on the results table |
| 381 |
var columns_settings = [% TablesSettings.GetColumns( 'members', 'member', 'memberresultst', 'json' ) | $raw %]; |
381 |
var table_settings = [% TablesSettings.GetTableSettings( 'members', 'member', 'memberresultst', 'json' ) | $raw %]; |
| 382 |
[% UNLESS CAN_user_borrowers_edit_borrowers OR CAN_user_tools_manage_patron_lists %] |
382 |
[% UNLESS CAN_user_borrowers_edit_borrowers OR CAN_user_tools_manage_patron_lists %] |
| 383 |
[%# Remove the first column if we do not display the checkbox %] |
383 |
[%# Remove the first column if we do not display the checkbox %] |
| 384 |
columns_settings.splice(0, 1); |
384 |
table_settings['columns'].splice(0, 1); |
| 385 |
[% END %] |
385 |
[% END %] |
| 386 |
dtMemberResults = KohaTable("memberresultst", { |
386 |
dtMemberResults = KohaTable("memberresultst", { |
| 387 |
'bServerSide': true, |
387 |
'bServerSide': true, |
|
Lines 497-503
Link Here
|
| 497 |
stickyClass: "floating" |
497 |
stickyClass: "floating" |
| 498 |
}); |
498 |
}); |
| 499 |
} |
499 |
} |
| 500 |
}, columns_settings); |
500 |
}, table_settings); |
| 501 |
update_searched(); |
501 |
update_searched(); |
| 502 |
/* Initial page load doesn't trigger the popstate event, so we explicitly call this */ |
502 |
/* Initial page load doesn't trigger the popstate event, so we explicitly call this */ |
| 503 |
getSearchByLocation( false ); |
503 |
getSearchByLocation( false ); |
| 504 |
- |
|
|