Added messages for Hide/Show
This commit is contained in:
parent
82b0c83b1f
commit
e479e1e3a4
2 changed files with 40 additions and 29 deletions
|
|
@ -92,12 +92,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
},
|
||||
success: function() {
|
||||
if(displayed)
|
||||
addMsg('{% trans "Button hidden"%}', 'success')
|
||||
else addMsg('{% trans "Button displayed"%}', 'success')
|
||||
addMsg("{% trans "Button hidden"%}", 'success', 1000)
|
||||
else addMsg("{% trans "Button displayed"%}", 'success', 1000)
|
||||
reloadTable()
|
||||
},
|
||||
error: function (err) {
|
||||
addMsg('{% trans "An error occured"%}', 'danger')
|
||||
addMsg("{% trans "An error occured"%}", 'danger')
|
||||
}})
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue