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(
|
return $app->redirectPath('admin_databases', array(
|
||||||
'databox_id' => $databox_id,
|
|
||||||
'error' => 'file-too-big',
|
|
||||||
'reload-tree' => 1,
|
'reload-tree' => 1,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -186,6 +186,7 @@ class Databoxes implements ControllerProviderInterface
|
|||||||
'error_msg' => $errorMsg,
|
'error_msg' => $errorMsg,
|
||||||
'recommendations' => $upgrader->getRecommendations(),
|
'recommendations' => $upgrader->getRecommendations(),
|
||||||
'advices' => $request->query->get('advices', array()),
|
'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' %}
|
{% if app['request'].query.get('success') == '1' %}
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<a class="close" data-dismiss="alert" href="#">×</a>
|
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user