mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-18 17:11:38 +00:00
small tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
01d602ad9a
commit
04e2b0d40c
@ -70,7 +70,10 @@ $(function(){requirejs(['pwiki'], function(pwiki){
|
|||||||
// load bootstrap data...
|
// load bootstrap data...
|
||||||
if(window.Bootstrap){
|
if(window.Bootstrap){
|
||||||
Bootstrap.__proto__ = pwiki.BaseData
|
Bootstrap.__proto__ = pwiki.BaseData
|
||||||
data.__proto__ = Bootstrap }
|
// XXX
|
||||||
|
var data = wiki.__data = Bootstrap
|
||||||
|
//data.__proto__ = Bootstrap
|
||||||
|
}
|
||||||
|
|
||||||
var client = window.client =
|
var client = window.client =
|
||||||
new pwiki.pWikiClient()
|
new pwiki.pWikiClient()
|
||||||
|
|||||||
7
pwiki.js
7
pwiki.js
@ -190,9 +190,10 @@ module.BaseData = {
|
|||||||
return this.get('..').reverse() },
|
return this.get('..').reverse() },
|
||||||
|
|
||||||
'System/delete': function(){
|
'System/delete': function(){
|
||||||
var p = this.dir
|
this.get('..').clear()
|
||||||
delete this.__wiki_data[p]
|
// XXX need a propper redirect...
|
||||||
return this.get('..') },
|
return this.get('..')
|
||||||
|
},
|
||||||
//*/
|
//*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user