2013-02-25 11:12:28 +01:00
|
|
|
-# please polish the following line if you know how, same in partial _destroy_fail
|
2013-04-10 17:34:24 +02:00
|
|
|
var successDiv = $('<div class="alert fade in alert-success"><a class="close" data-dismiss="alert" href="#">#{escape_javascript(t('ui.marks.close').html_safe)}</a></div>');
|
2013-02-25 11:12:28 +01:00
|
|
|
|
2013-03-06 01:24:57 +01:00
|
|
|
successDiv.append(document.createTextNode('#{escape_javascript(t('.notice', name: @article.name))}'));
|
2013-02-25 11:12:28 +01:00
|
|
|
$('div.container-fluid').prepend(successDiv);
|
|
|
|
|
|
|
|
$('#stockArticle-#{@article.id}').remove();
|
|
|
|
-# WARNING: Do not use a simple .fadeOut() above, because it conflicts with the show/hide function of unavailable articles.
|