improved shared database import ui
This commit is contained in:
parent
950480941a
commit
0014435663
8 changed files with 97 additions and 61 deletions
4
app/views/articles/_import_article_added.js.erb
Normal file
4
app/views/articles/_import_article_added.js.erb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// 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')%>');
|
||||
Loading…
Add table
Add a link
Reference in a new issue