diff --git a/wiki.js b/wiki.js index 9e4cc28..6ce79da 100755 --- a/wiki.js +++ b/wiki.js @@ -815,11 +815,14 @@ var data = { +'' +'
' +'' - +'' + +'src="."' + +'/>' + //+'\n' +'×' +'
' +'
' @@ -841,6 +844,42 @@ var data = { +'' +'\n', }, + + 'Templates/outline': { + text: '' + //* + +'
' + // XXX select all on focus... + +'' + +'+' + +'' + +'
' + //+'
' + //*/ + +'' + +'
' + +'
' + +'' + +'' + +'×' + +'
' + +'
' + +'' + +'
' + +'
' + +'
' + +'\n', + }, } data.__proto__ = BaseData @@ -912,6 +951,11 @@ var Wiki = { .replace(/\$NOW|\$\{NOW\}/g, ''+Date.now()) }, resolvePathActions: function(){ + // XXX this can happen when we are getting '.../*' of an empty item... + if(this.path == null){ + return this + } + var p = path2lst(this.path).pop() if(p in PathActions){ @@ -1025,6 +1069,8 @@ var Wiki = { // NOTE: changing path will update all the links to the moving page. // NOTE: if a link can't be updated without a conflit then it is left // unchanged, and a redirect page will be created. + // + // XXX this can be null if we are getting '.../*' of an empty item... get path(){ return (this.__order || this.resolveStarPath(this.location))[this.at()] }, // XXX should link updating be part of this???