small tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-04-07 22:51:39 +03:00
parent 01d602ad9a
commit 04e2b0d40c
2 changed files with 8 additions and 4 deletions

View File

@ -70,7 +70,10 @@ $(function(){requirejs(['pwiki'], function(pwiki){
// load bootstrap data...
if(window.Bootstrap){
Bootstrap.__proto__ = pwiki.BaseData
data.__proto__ = Bootstrap }
// XXX
var data = wiki.__data = Bootstrap
//data.__proto__ = Bootstrap
}
var client = window.client =
new pwiki.pWikiClient()

View File

@ -190,9 +190,10 @@ module.BaseData = {
return this.get('..').reverse() },
'System/delete': function(){
var p = this.dir
delete this.__wiki_data[p]
return this.get('..') },
this.get('..').clear()
// XXX need a propper redirect...
return this.get('..')
},
//*/
}