mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixes
This commit is contained in:
parent
4eea8c8193
commit
fcc1e9fe8f
@ -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:
|
||||||
|
@ -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%',
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user