mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
set modal title with response
This commit is contained in:
parent
ebe2ae77a5
commit
3d17388b48
@ -792,6 +792,11 @@ function handleModalForm(url, options) {
|
||||
if (options.secondary) {
|
||||
attachSecondaries(modal, options.secondary);
|
||||
}
|
||||
|
||||
// Set modal title with response
|
||||
if (response.title) {
|
||||
modalSetTitle(modal, response.title);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$(modal).modal('hide');
|
||||
|
Loading…
Reference in New Issue
Block a user