foodsoft/app/views/articles/_import_article_added.js.erb
2014-05-13 17:01:24 +02:00

4 lines
328 B
Text

// update shared article button on create, so that the article will be shown as imported
// reloading the list doesn't work because it breaks paging :(
$('#shared_article_<%= article.shared_article.id %> .actions')
.html('<%= j content_tag(:i, I18n.t('articles.import_search_results.already_imported'), class: 'icon-ok')%>');