From faae6d36cc92aae7c040146edb8471fa8e8c6a75 Mon Sep 17 00:00:00 2001 From: Egil Moeller Date: Fri, 12 Mar 2010 21:25:15 +0100 Subject: Tags are now shown as links --- trunk/infrastructure/ace/www/domline.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'trunk/infrastructure/ace/www/domline.js') diff --git a/trunk/infrastructure/ace/www/domline.js b/trunk/infrastructure/ace/www/domline.js index 70f86cc..e8a9ba7 100644 --- a/trunk/infrastructure/ace/www/domline.js +++ b/trunk/infrastructure/ace/www/domline.js @@ -85,6 +85,12 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) { return space+"url"; }); } + if (cls.indexOf('padtag') >= 0) { + cls = cls.replace(/(^| )padtag:(\S+)/g, function(x0, space, padtag) { + href = '/ep/tag/?query=' + padtag; + return space+"padtag padtag_"+padtag; + }); + } if (cls.indexOf('tag') >= 0) { cls = cls.replace(/(^| )tag:(\S+)/g, function(x0, space, tag) { if (! simpleTags) simpleTags = []; -- cgit v1.2.3