2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 03:30:54 +00:00

Part image delete (#3963)

* Add button to remove an associated image from a part

- Also fixes some issues with onclick event propagation

* Similar feature for company image
This commit is contained in:
Oliver
2022-11-19 21:53:48 +11:00
committed by GitHub
parent 9ce2f4f4d3
commit bc8a6ae4b8
5 changed files with 74 additions and 17 deletions

View File

@ -621,11 +621,11 @@ function showQuestionDialog(title, content, options={}) {
* cancel - Functino to run if the user presses 'Cancel'
*/
var modal = createNewModal({
title: title,
submitText: options.accept_text || '{% trans "Accept" %}',
closeText: options.cancel_text || '{% trans "Cancel" %}',
});
options.title = title;
options.submitText = options.accept_text || '{% trans "Accept" %}';
options.closeText = options.cancel_text || '{% trans "Cancel" %}';
var modal = createNewModal(options);
modalSetContent(modal, content);