diff --git a/InvenTree/templates/js/translated/modals.js b/InvenTree/templates/js/translated/modals.js index 464006ae12..023fcd26ce 100644 --- a/InvenTree/templates/js/translated/modals.js +++ b/InvenTree/templates/js/translated/modals.js @@ -99,7 +99,7 @@ function createNewModal(options={}) { $(modal_name).focus(); if (options.hideCloseButton) { - $(modal_name).find('#modal-form-cancel').hide(); + $(modal_name).find('#modal-form-close').hide(); } if (options.preventSubmit || options.hideSubmitButton) {