Commit 16b21eed authored by fvtorres's avatar fvtorres

[Fix] Sorry, forgot to save the last part of my commit

parent 42ee66df
......@@ -3747,7 +3747,7 @@ function feedback (mes, type, modal, title, icon, killall, custom)
meshtml += '<li>' + val + '</li>';
});
meshtml += '</ul>';
type = type || 'info'; modal = modal || false; killall = killall || false; custom = ($('"' + custom + '"').length) ? $('"' + custom + '"').first() : null;
type = type || 'info'; modal = modal || false; killall = killall || false; custom = $(custom).length ? $(custom).first() : null;
var target, map =
{
'error': {title:tr('Error'), class:'danger', icon:'error'},
......@@ -3778,7 +3778,7 @@ function feedback (mes, type, modal, title, icon, killall, custom)
target.modal();
} else {
if (killall) {
$(custom ? custom : 'div#tikifeedback').find('div.alert').remove();
$(custom ? custom : 'div#tikifeedback').find('div.alert.alert-dismissable').remove();
}
if (mes.length == 0) {
meshtml = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment