Skip to content

Commit

Permalink
improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Jun 9, 2016
1 parent 42f3559 commit 5d35504
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion media/system/js/permissions.js
Expand Up @@ -80,7 +80,14 @@ function sendPermissions(event) {
{
Joomla.renderMessages(response.messages);

icon.setAttribute('class', 'icon-cancel');
if (response.data && response.data.result == true)
{
icon.setAttribute('class', 'icon-save');
}
else
{
icon.setAttribute('class', 'icon-cancel');
}

window.scrollTo(0, 0);
}
Expand Down
2 changes: 1 addition & 1 deletion media/system/js/permissions.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d35504

Please sign in to comment.