From e53b4e8c78eb9b7b5b8453d95e5271b05a81450b Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 31 May 2019 00:37:29 +0300 Subject: [PATCH] Slim Framework integration #118 #117 - base.html updates --- site/plugins/admin/views/partials/base.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site/plugins/admin/views/partials/base.html b/site/plugins/admin/views/partials/base.html index beede916..53a164aa 100644 --- a/site/plugins/admin/views/partials/base.html +++ b/site/plugins/admin/views/partials/base.html @@ -333,8 +333,7 @@ }); $.validate({}); - - {% if params.fieldset or params.menu or params.snippet or params.source or params.template %} + {% if is_current_path('admin.fieldsets.edit') or is_current_path('admin.templates.edit') or is_current_path('admin.snippets.edit')%} var editor = CodeMirror.fromTextArea(document.getElementById("codeMirrorEditor"), { lineNumbers: true, {% if params.fieldset or params.menu %}