mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix #1667 Admin tree is not reloaded when empty action is triggered
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
</form>
|
||||
|
||||
<form style="display:inline; margin:0;" method="post" action="{{ path('admin_collection_empty', { 'bas_id' : bas_id }) }}">
|
||||
<button type="button" class="btn confirm submiter" data-confirm-msg="{% trans 'admin::base:collection: etes vous sur de vider la collection ?' %}">
|
||||
<button type="button" class="btn confirm submiter reload" data-confirm-msg="{% trans 'admin::base:collection: etes vous sur de vider la collection ?' %}">
|
||||
<img src="/skins/icons/trash.png" />
|
||||
{% trans 'admin::base:collection: vider la collection' %}
|
||||
</button>
|
||||
@@ -331,7 +331,7 @@
|
||||
success: function(datas) {
|
||||
if(datas.success) {
|
||||
if(submitLink.hasClass('reload')) {
|
||||
reloadTree('base:{{ collection.get_sbas_id() }}', true);
|
||||
reloadTree('collection:{{ collection.get_base_id() }}', true);
|
||||
} else if(submitLink.hasClass('reload-tree')) {
|
||||
reloadTree('bases:bases', true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user