foodsoft/app/views/stockit/_destroy_fail.js.haml
2013-03-06 01:24:57 +01:00

5 lines
319 B
Text

-# please polish the following line if you know how, same in view destroy
var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">#{t('ui.marks.close')}</a></div>');
errorDiv.append(document.createTextNode('#{j(fail_msg)}'));
$('div.container-fluid').prepend(errorDiv);