This commit is contained in:
Oliver 2021-10-30 01:00:37 +11:00
parent 4eea8c8193
commit fcc1e9fe8f
3 changed files with 4 additions and 2 deletions

View File

@ -115,7 +115,7 @@ class URLTest(TestCase):
if url.startswith("account_"): if url.startswith("account_"):
return return
if pk: if pk and pk not in ['as']:
# We will assume that there is at least one item in the database # We will assume that there is at least one item in the database
reverse(url, kwargs={"pk": 1}) reverse(url, kwargs={"pk": 1})
else: else:

View File

@ -151,7 +151,7 @@ function enableSidebar(label, options={}) {
*/ */
function setSidebarState(label, state) { function setSidebarState(label, state) {
if (state == "collapsed") { if (state == 'collapsed') {
$('.sidebar-item-text').animate({ $('.sidebar-item-text').animate({
'opacity': 0.0, 'opacity': 0.0,
'font-size': '0%', 'font-size': '0%',

View File

@ -214,6 +214,8 @@ $.fn.inventreeTable = function(options) {
options.pageList = [25, 50, 100, 250, 'all']; options.pageList = [25, 50, 100, 250, 'all'];
options.totalField = 'count'; options.totalField = 'count';
options.dataField = 'results'; options.dataField = 'results';
} else {
options.pagination = false;
} }
// Extract query params // Extract query params