Refresh codemirror once again after one second
authorTim Düsterhus <timwolla@googlemail.com>
Thu, 1 Aug 2013 21:49:50 +0000 (23:49 +0200)
committerTim Düsterhus <timwolla@googlemail.com>
Thu, 1 Aug 2013 21:49:50 +0000 (23:49 +0200)
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

index 97b9d8796fe5c990993f84bbf71a771e0f7579f4..02ae59f918c755845f0d945080a7e4b50887e476 100644 (file)
@@ -49,6 +49,9 @@
                                setTimeout(function () {
                                        $element.codemirror.refresh();
                                }, 250);
+                               setTimeout(function () {
+                                       $element.codemirror.refresh();
+                               }, 1000);
                        })();
                }
        });