return text;
};
- this.str2a = function(elems,compact,class_exp_file) {
+ this.e2links = function(elems,compact,class_exp_file) {
compact = (typeof compact === 'undefined') ? true : compact;
class_exp_file = (typeof class_exp_file === 'undefined') ? 'doc|dir|path' : class_exp_file;
$(elems).each(function(){
if (this.className.match(re) && !url.match(/^\w+:/)) url = 'file://'+encodeURI(url);
}
- if (compact) {
- text = that.str_trunc(text);
- }
+ if (compact) text = that.str_trunc(text);
//console.log(text);
$(this).html('<a href="'+url+'" class="small" target="_blank">'+text+'</a>');