Commit e3ed2b41 authored by fvtorres's avatar fvtorres

[FIX] Add onClick handler to remove feedbacks generated by tiki-jquery.js

parent 16b21eed
......@@ -3789,7 +3789,9 @@ function feedback (mes, type, modal, title, icon, killall, custom)
'<h4 class="text-' + map[type]['class'] + '">' + icon[0].outerHTML + ' ' + title + '</h4>' +
meshtml +
'</div>'
);
).on('click' , 'button.close' , function() {
$(this).parent().remove();
});
$('html, body').animate({
scrollTop: $(custom ? custom : 'div#tikifeedback').offset().top
}, 500);
......
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