From 317691eb5f35bb30e36218e0fe24a802d501fbea Mon Sep 17 00:00:00 2001 From: Dmitry Larchikov Date: Fri, 15 Aug 2014 08:57:57 +0400 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=BE=D0=BB=D0=B5=D0=B5=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B3=D0=B8=D1=87=D0=BD=D0=B0=D1=8F=20=D0=BF=D0=BE=D0=B4=D1=81?= =?UTF-8?q?=D0=B2=D0=B5=D1=82=D0=BA=D0=B0=20=D1=81=D0=BE=D0=B2=D0=BF=D0=B0?= =?UTF-8?q?=D0=B4=D0=B5=D0=BD=D0=B8=D0=B9.=20=D0=A1=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=BA=D1=83=20=D0=BC=D1=8B=20=D0=B8=20=D1=82=D0=B0=D0=BC=20?= =?UTF-8?q?=D0=B2=D0=B8=D0=B4=D0=B8=D0=BC,=20=D0=B0=20=D0=B2=D0=BE=D1=82?= =?UTF-8?q?=20=D1=87=D0=B0=D1=81=D1=82=20=D0=BA=D0=BE=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=81=D0=BE=D0=B2=D0=BF=D0=B0=D0=BB=D0=B0=20?= =?UTF-8?q?=D1=81=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=BE=D0=B2=D0=BE=D0=B9?= =?UTF-8?q?=20=D0=BB=D1=83=D1=87=D1=88=D0=B5=20=D0=BF=D0=BE=D0=B4=D1=81?= =?UTF-8?q?=D0=B2=D0=B5=D1=82=D0=B8=D1=82=D1=8C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/templates/default/index_map.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upload/templates/default/index_map.tpl b/upload/templates/default/index_map.tpl index d78f82101..37cae539d 100644 --- a/upload/templates/default/index_map.tpl +++ b/upload/templates/default/index_map.tpl @@ -18,13 +18,13 @@ a.hl, a.hl:visited { color: #1515FF; } function qs_highlight_found () { this.style.display = ''; - var a = $('a:first', this)[0]; + var a = $('a:first', this); var q = $('#q-search').val().toLowerCase(); - if (q != '' && a.innerHTML.toLowerCase().indexOf(q) != -1) { - a.className = 'hl'; + if (q != '' && a.text().toLowerCase().indexOf(q) != -1) { + a.html(a.text().replace(q, '' + q + '')); } else { - a.className = ''; + a.html(a.text()); } } function open_feed (f_id)