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

8 lines
354 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-# please polish the following line if you know how
var errorDiv = $('<div class="alert fade in alert-error"><a class="close" data-dismiss="alert" href="#">×</a></div>');
-# next line, createTextNode called by .text(textString) helps escaping for html, but what about ' signs?
errorDiv.text('#{fail_msg}');
$('div.container-fluid').prepend(errorDiv);