From 231c87d013670f4efe6a7642d4492869ef8bdf87 Mon Sep 17 00:00:00 2001 From: Olivier Le Floch Date: Tue, 27 May 2008 17:57:30 +0200 Subject: [PATCH] Minor fix to inlined javascript - un-escaped '/' is not allowed By the way Vincent, I think that that is a good argument in favor of external javascript files instead of inlined ones (as are enabling compression, caching, etc.) --- templates/search/adv.form.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/search/adv.form.tpl b/templates/search/adv.form.tpl index 5461b49..f2648e8 100644 --- a/templates/search/adv.form.tpl +++ b/templates/search/adv.form.tpl @@ -32,13 +32,13 @@ return function(row) { regexp = new RegExp('(' + RegExp.escape(block.value) + ')', 'i'); - name = row[0].replace(regexp, '$1'); + name = row[0].replace(regexp, '$1<\/strong>'); if (row[1] == 1) { return name; } - return name + '  -  '+ row[1] + ' camarades'; + return name + '  -  ' + row[1] + ' camarades<\/em>'; }; } -- 2.1.4