From: Tim Düsterhus Date: Thu, 30 May 2013 18:53:23 +0000 (+0200) Subject: Support comments in WCF.Template X-Git-Tag: 2.0.0_Beta_2~7^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1687291496bd63c372f9e7ba64431f7ac5cce321;p=GitHub%2FWoltLab%2FWCF.git Support comments in WCF.Template --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 4ae33d8159..7c08eae99c 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -3661,6 +3661,9 @@ WCF.Template = Class.extend({ return id; }, this)); + // remove comments + template = template.replace(/\{\*.*?\*\}/g, ''); + var parseParameterList = function(parameterString) { var $chars = parameterString.split(''); var $parameters = { };