From f1b149453f7737d3150a167fd17fe3b7ee5c196f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 1 Aug 2013 23:49:50 +0200 Subject: [PATCH] Refresh codemirror once again after one second Hopefully it has initialized until then. cf. http://beta.woltlab.com/index.php/Thread/2676-ACP-Template-hinzuf%C3%BCgen-bearbeiten/ --- wcfsetup/install/files/acp/templates/codemirror.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/acp/templates/codemirror.tpl b/wcfsetup/install/files/acp/templates/codemirror.tpl index 97b9d8796f..02ae59f918 100644 --- a/wcfsetup/install/files/acp/templates/codemirror.tpl +++ b/wcfsetup/install/files/acp/templates/codemirror.tpl @@ -49,6 +49,9 @@ setTimeout(function () { $element.codemirror.refresh(); }, 250); + setTimeout(function () { + $element.codemirror.refresh(); + }, 1000); })(); } }); -- 2.20.1