From e284e476b02ce0960711b90e4ed4888acfbcf6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20K=C5=99=C3=AD=C5=BE?= Date: Sun, 12 Jan 2014 17:38:17 +0100 Subject: [PATCH] administration/@layout.latte: Disable history on FilesPresenter with browser mode. --- Resources/administration/@layout.latte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/administration/@layout.latte b/Resources/administration/@layout.latte index 2baa29eb..8b44a716 100644 --- a/Resources/administration/@layout.latte +++ b/Resources/administration/@layout.latte @@ -47,7 +47,7 @@ {css @dynatreeModule/skin-bootstrap/ui.dynatree.css} - {if !$presenter instanceof CmsModule\Administration\Presenters\PanelPresenter} + {if !$presenter instanceof CmsModule\Administration\Presenters\PanelPresenter && (!$presenter instanceof CmsModule\Administration\Presenters\FilesPresenter || ($presenter instanceof CmsModule\Administration\Presenters\FilesPresenter && !$presenter->browserMode))} {js @ajaxModule/history/history.ajax.js} {/if}