From b68c3873849bcacf3115e837dbc3aead14d6113b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 17 Jun 2016 10:59:31 +0200 Subject: [PATCH] doc --- etc/dbs/rent.php | 1 + lib/js/nb.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) 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+''); -- 2.47.3