Ticket #5620: inspector.js.v2.patch
File inspector.js.v2.patch, 776 bytes (added by e-moe, 8 years ago) |
---|
-
web/javascript/inspector.
old new 106 106 creator, mixed_creator, 107 107 date, mixed_date, 108 108 v, u, f, d, pct, 109 uri, 109 110 now = Date.now(); 110 111 111 112 // … … 396 397 } 397 398 if(!str) 398 399 str = none; 399 setTextContent(e.comment_lb, str); 400 uri = parseUri(str); 401 if (uri.protocol == 'http' || uri.parseUri == 'https') { 402 str = encodeURI(str); 403 setInnerHTML(e.comment_lb, '<a href="' + str + '" target="_blank" >' + str + '</a>'); 404 } 405 else 406 setTextContent(e.comment_lb, str); 400 407 401 408 // 402 409 // origin