브라우저에 따라 존재하는 정규식 버그때문에 메뉴가 검색되지 않던 문제 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6976 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2009-11-25 05:40:17 +00:00
parent 21f5da7d32
commit bfd89da2f8

View file

@ -124,9 +124,12 @@ jQuery(function($){
nav.find('li li > a').each(function(){ nav.find('li li > a').each(function(){
var text = $(this).text(); var text = $(this).text();
if (regex.test(text)) { if (regex.exec(text) != null) {
$(this).parent().clone().appendTo(result); $(this).parent().clone().appendTo(result);
} }
// fix regular expression bug
regex.exec('');
}); });
nav.hide(); nav.hide();
@ -147,6 +150,7 @@ jQuery(function($){
return false; return false;
}); });
}); });
// logout // logout