From 7e81d9021f283bc5f06719211d51c49482f21609 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 6 May 2019 08:13:59 +1000 Subject: [PATCH] Auto-show the active build table --- InvenTree/build/templates/build/index.html | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/InvenTree/build/templates/build/index.html b/InvenTree/build/templates/build/index.html index f49499ab66..5163905f83 100644 --- a/InvenTree/build/templates/build/index.html +++ b/InvenTree/build/templates/build/index.html @@ -30,6 +30,9 @@ {% block js_ready %} {{ block.super }} + + $("#collapse-item-active").collapse().show(); + $("#new-build").click(function() { launchModalForm( "{% url 'build-create' %}", @@ -61,22 +64,10 @@ { title: 'Status', sortable: true, - } - { - title: 'Created', - sortable: true, }, { - title: 'Completed', sortable: true, - formatter: function(value, row, index, field) { - if (value) { - return 'hello'; - } else { - return "---"; - } - }, - } + }, ] });