foodsoft/app/views/articles/_import_article_added.js.erb

5 lines
328 B
Text
Raw Permalink Normal View History

2014-02-24 14:07:03 +01:00
// 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')%>');