aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/infrastructure/ace/www/domline.js
diff options
context:
space:
mode:
authorEgil Moeller <egil.moller@freecode.no>2010-03-12 21:25:15 +0100
committerEgil Moeller <egil.moller@freecode.no>2010-03-12 21:25:15 +0100
commitfaae6d36cc92aae7c040146edb8471fa8e8c6a75 (patch)
tree40ce0e6a8c1959ba288a1a130243687b2ed98a45 /trunk/infrastructure/ace/www/domline.js
parent2d8d9afeb01df0772661348321974627d42c8850 (diff)
downloadetherpad-faae6d36cc92aae7c040146edb8471fa8e8c6a75.tar.gz
etherpad-faae6d36cc92aae7c040146edb8471fa8e8c6a75.tar.xz
etherpad-faae6d36cc92aae7c040146edb8471fa8e8c6a75.zip
Tags are now shown as links
Diffstat (limited to 'trunk/infrastructure/ace/www/domline.js')
-rw-r--r--trunk/infrastructure/ace/www/domline.js6
1 files changed, 6 insertions, 0 deletions
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 = [];