mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
Tweaks
This commit is contained in:
@ -924,8 +924,8 @@ function handleFormSuccess(response, options) {
|
||||
var cache = (options.follow && response.url) || options.redirect || options.reload;
|
||||
|
||||
// Display any messages
|
||||
if (response && response.success) {
|
||||
showAlertOrCache(response.success, cache, {style: 'success'});
|
||||
if (response && (response.success || options.successMessage)) {
|
||||
showAlertOrCache(response.success || options.successMessage, cache, {style: 'success'});
|
||||
}
|
||||
|
||||
if (response && response.info) {
|
||||
|
@ -331,6 +331,7 @@ function editPart(pk) {
|
||||
groups: groups,
|
||||
title: '{% trans "Edit Part" %}',
|
||||
reload: true,
|
||||
successMessage: '{% trans "Part edited" %}',
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user