mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +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) {
|
if (options.secondary) {
|
||||||
attachSecondaries(modal, options.secondary);
|
attachSecondaries(modal, options.secondary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set modal title with response
|
||||||
|
if (response.title) {
|
||||||
|
modalSetTitle(modal, response.title);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(modal).modal('hide');
|
$(modal).modal('hide');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user