foodsoft/app/views/stockit/_destroy_fail.js.haml

6 lines
329 B
Text
Raw Permalink Normal View History

-# please polish the following line if you know how, same in view destroy
2013-04-10 17:34:24 +02:00
var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">#{t('ui.marks.close').html_safe}</a></div>');
2013-02-25 10:02:21 +01:00
errorDiv.append(document.createTextNode('#{j(fail_msg)}'));
2013-02-25 10:02:21 +01:00
$('div.container-fluid').prepend(errorDiv);