From: Nicolas Boisselier Date: Fri, 17 Jun 2016 08:59:31 +0000 (+0200) Subject: doc X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=b68c3873849bcacf3115e837dbc3aead14d6113b;p=nb.git doc --- diff --git a/etc/dbs/rent.php b/etc/dbs/rent.php index 2b0c21d7..2d0429ae 100644 --- a/etc/dbs/rent.php +++ b/etc/dbs/rent.php @@ -112,6 +112,7 @@ function rent_doc($table,&$r) { } + if (!empty($r['doc'])) $r['doc'] = '
'.$r['doc'].'
'; } ?> diff --git a/lib/js/nb.js b/lib/js/nb.js index 1002dea0..748738fc 100644 --- a/lib/js/nb.js +++ b/lib/js/nb.js @@ -287,7 +287,7 @@ function NB(args) { 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(){ @@ -310,9 +310,7 @@ function NB(args) { 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(''+text+'');