Support comments in WCF.Template
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 30 May 2013 18:53:23 +0000 (20:53 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 30 May 2013 18:53:59 +0000 (20:53 +0200)
wcfsetup/install/files/js/WCF.js

index 4ae33d8159e29cdf816fcc9141d1d2dc9cf95daf..7c08eae99c01b672c569a190e2d3309fed5abeb3 100755 (executable)
@@ -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 = { };