Changeset View
Changeset View
Standalone View
Standalone View
assets/src/bundles/admin/deposit.js
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | depositsTable = $('#swh-admin-deposit-list') | ||||
'<"#list-exclude">l>rt<"bottom"ip>>', | '<"#list-exclude">l>rt<"bottom"ip>>', | ||||
// div#list-exclude is a custom filter added next to dataTable | // div#list-exclude is a custom filter added next to dataTable | ||||
// initialization below through js dom manipulation, see | // initialization below through js dom manipulation, see | ||||
// https://datatables.net/examples/advanced_init/dom_toolbar.html | // https://datatables.net/examples/advanced_init/dom_toolbar.html | ||||
ajax: { | ajax: { | ||||
url: Urls.admin_deposit_list(), | url: Urls.admin_deposit_list(), | ||||
data: d => { | data: d => { | ||||
d.excludePattern = $('#swh-admin-deposit-list-exclude-filter').val(); | d.excludePattern = $('#swh-admin-deposit-list-exclude-filter').val(); | ||||
if (!isStaff) { | |||||
d.username = username; | |||||
} | |||||
} | } | ||||
}, | }, | ||||
columns: [ | columns: [ | ||||
{ | { | ||||
data: 'id', | data: 'id', | ||||
name: 'id' | name: 'id' | ||||
}, | }, | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |