mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
autolink addon : 내용이 많은 경우 IE에서 느려지는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6256 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1add972345
commit
1b152e7cbe
1 changed files with 3 additions and 3 deletions
|
|
@ -11,11 +11,11 @@ jQuery(function($) {
|
|||
if(!pObj) continue;
|
||||
|
||||
var pN = pObj.nodeName.toLowerCase();
|
||||
if($.inArray(pN, ['a', 'pre', 'xml', 'textarea', 'input', 'option', 'code']) != -1) continue;
|
||||
if($.inArray(pN, ['a', 'pre', 'xml', 'textarea', 'input', 'select', 'option', 'code', 'script', 'style']) != -1) continue;
|
||||
|
||||
if(obj.nodeType == 3 && obj.length >= 10) {
|
||||
var content = obj.nodeValue;
|
||||
if(!url_regx.test(content)) continue;
|
||||
if(!/(http|https|ftp|news|telnet|irc):\/\//i.test(content)) continue;
|
||||
|
||||
content = content.replace(/</g, '<');
|
||||
content = content.replace(/>/g, '>');
|
||||
|
|
@ -31,6 +31,6 @@ jQuery(function($) {
|
|||
}
|
||||
|
||||
$('.xe_content').each(function() {
|
||||
if(url_regx.test($(this).text())) replaceHrefLink(this);
|
||||
replaceHrefLink(this);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue