mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
add feedback and reload side menu when activating collection
This commit is contained in:
@@ -189,7 +189,7 @@
|
||||
<li>
|
||||
<form class='form-inline' method="post" action="{{ path('admin_collection_enable', {'bas_id': baseId}) }}">
|
||||
{{ baseId|bas_labels(app) }}
|
||||
<a href="#" class="btn btn-mini submiter">{{ "Activer" | trans }}></a>
|
||||
<a href="#" class="btn btn-mini reload submiter">{{ "Activer" | trans }}></a>
|
||||
</form>
|
||||
</li>
|
||||
{% endfor %}
|
||||
@@ -375,6 +375,10 @@
|
||||
} else if(submitLink.hasClass('reload-tree')) {
|
||||
AdminApp.LeftView.reloadTree('bases:bases', true);
|
||||
}
|
||||
//display message
|
||||
if (typeof datas.msg !== "undefined") {
|
||||
alert(datas.msg);
|
||||
}
|
||||
} else {
|
||||
alert(datas.msg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user