diff --git a/InvenTree/InvenTree/views.py b/InvenTree/InvenTree/views.py index bee9274370..d6ee093a6f 100644 --- a/InvenTree/InvenTree/views.py +++ b/InvenTree/InvenTree/views.py @@ -76,7 +76,7 @@ class AjaxMixin(object): data['title'] = self.ajax_form_title - data['submit_text'] = self.ajax_submit_text + data['submit_label'] = self.ajax_submit_text data['html_form'] = render_to_string( self.getAjaxTemplate(), diff --git a/InvenTree/static/script/inventree/modals.js b/InvenTree/static/script/inventree/modals.js index f29ed0919b..80683fe9f8 100644 --- a/InvenTree/static/script/inventree/modals.js +++ b/InvenTree/static/script/inventree/modals.js @@ -102,8 +102,8 @@ function openModal(options) { modalSetContent(modal, options.content); } - if (options.buttonText) { - modalSetButtonText(modal, options.buttonText); + if (options.submit_label) { + modalSetButtonText(modal, options.submit_label); } $(modal).modal({ @@ -256,8 +256,8 @@ function launchModalForm(url, options = {}) { modalSetTitle(modal, response.title); } - if (response.submit_text) { - modalSetButtonText(response.submit_text); + if (response.submit_label) { + modalSetButtonText(response.submit_label); } if (response.html_form) { diff --git a/InvenTree/static/script/inventree/stock.js b/InvenTree/static/script/inventree/stock.js index 5786ac2622..3ad4503b8b 100644 --- a/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/static/script/inventree/stock.js @@ -207,7 +207,7 @@ function moveStockItems(items, options) { openModal({ modal: modal, title: "Move " + items.length + " stock items", - buttonText: "Move" + submit_label: "Move" }); // Extact part row info