mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Reload tree after databox unmount
This commit is contained in:
@@ -854,9 +854,7 @@ class Databox implements ControllerProviderInterface
|
||||
));
|
||||
}
|
||||
|
||||
return $app->redirectPath('admin_database', array(
|
||||
'databox_id' => $databox_id,
|
||||
'error' => 'file-too-big',
|
||||
return $app->redirectPath('admin_databases', array(
|
||||
'reload-tree' => 1,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -186,6 +186,7 @@ class Databoxes implements ControllerProviderInterface
|
||||
'error_msg' => $errorMsg,
|
||||
'recommendations' => $upgrader->getRecommendations(),
|
||||
'advices' => $request->query->get('advices', array()),
|
||||
'reloadTree' => (Boolean) $request->query->get('reload-tree'),
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
{% if reloadTree %}
|
||||
<script type="text/javascript">
|
||||
reloadTree('bases:bases');
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% if app['request'].query.get('success') == '1' %}
|
||||
<div class="alert alert-success">
|
||||
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||
|
||||
Reference in New Issue
Block a user