diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index ccf0671d56..964be5c359 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -413,6 +413,10 @@ font-size: 125%; } +.btn-group { + padding-bottom: 5px; +} + .action-buttons .btn { font-size: 175%; align-content: center; @@ -474,6 +478,7 @@ .media { padding-top: 15px; + overflow: visible; } .media-body { diff --git a/InvenTree/InvenTree/static/script/inventree/api.js b/InvenTree/InvenTree/static/script/inventree/api.js index 0a3b8d9374..52aba80ef5 100644 --- a/InvenTree/InvenTree/static/script/inventree/api.js +++ b/InvenTree/InvenTree/static/script/inventree/api.js @@ -108,6 +108,25 @@ function inventreePut(url, data={}, options={}) { if (options.error) { options.error(xhr, ajaxOptions, thrownError); } + }, + complete: function(xhr, status) { + if (options.complete) { + options.complete(xhr, status); + } } }); } + + +function inventreeDelete(url, options={}) { + /* + * Delete a record + */ + + options = options || {}; + + options.method = 'DELETE'; + + inventreePut(url, {}, options); + +} \ No newline at end of file diff --git a/InvenTree/company/templates/company/detail_part.html b/InvenTree/company/templates/company/detail_part.html index 2364f36b61..e07304dd13 100644 --- a/InvenTree/company/templates/company/detail_part.html +++ b/InvenTree/company/templates/company/detail_part.html @@ -9,14 +9,14 @@
{{ part.description }}
+