diff --git a/InvenTree/static/script/inventree/tables.js b/InvenTree/static/script/inventree/tables.js index 1ff1903326..979a7d5a21 100644 --- a/InvenTree/static/script/inventree/tables.js +++ b/InvenTree/static/script/inventree/tables.js @@ -2,10 +2,12 @@ function editButton(url, text='Edit') { return ""; } + function deleteButton(url, text='Delete') { return ""; } + function renderLink(text, url) { if (text === '' || url === '') { return text; @@ -14,51 +16,6 @@ function renderLink(text, url) { return '' + text + ''; } -function renderEditable(text, options) { - /* Wrap the text in an 'editable' link - * (using bootstrap-editable library) - * - * Can pass the following parameters in 'options': - * _type - parameter for data-type (default = 'text') - * _pk - parameter for data-pk (required) - * _title - title to show when editing - * _empty - placeholder text to show when field is empty - * _class - html class (default = 'editable-item') - * _id - id - * _value - Initial value of the editable (default = blank) - */ - - // Default values (if not supplied) - var _type = options._type || 'text'; - var _class = options._class || 'editable-item'; - - var html = "" + text + ""; - - return html; -} function enableButtons(elements, enabled) { for (let item of elements) {