foodsoft/app/views/stockit/_destroy_fail.js.haml
2013-02-25 11:12:28 +01:00

5 lines
298 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="#">x</a></div>');
errorDiv.append(document.createTextNode('#{j(fail_msg)}'));
$('div.container-fluid').prepend(errorDiv);