From 9308c0590dcc7f3e67aff972ed288aa0ca44845d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 4 Aug 2016 16:51:20 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- wiki.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wiki.js b/wiki.js index 8ec3c5c..0e3f410 100755 --- a/wiki.js +++ b/wiki.js @@ -901,7 +901,7 @@ var Wiki = { var l = this.location - if(value == l){ + if(value == l || value == ''){ return } @@ -1021,7 +1021,12 @@ var Wiki = { get title(){ return path2lst(this.path).pop() }, set title(value){ - this.path = this.dir +'/'+ value }, + if(value == '' || value == null){ + return + } + + this.path = this.dir +'/'+ value + }, // page content...