mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
12bd9ffebf
commit
0e4344a711
@ -1080,7 +1080,9 @@ var Outline = {
|
|||||||
var that = this
|
var that = this
|
||||||
var stack = this.__crop_stack ??= []
|
var stack = this.__crop_stack ??= []
|
||||||
var path = this.path()
|
var path = this.path()
|
||||||
var header = this.path(path.slice(0,-1), 'text')
|
// XXX make this linkable...
|
||||||
|
var header = '/ '
|
||||||
|
+ this.path(path.slice(0,-1), 'text')
|
||||||
.map(function(text, i){
|
.map(function(text, i){
|
||||||
return `<span>${text.split(/\n/)[0]}</span>` })
|
return `<span>${text.split(/\n/)[0]}</span>` })
|
||||||
.join(' / ')
|
.join(' / ')
|
||||||
@ -1092,6 +1094,7 @@ var Outline = {
|
|||||||
this.dom.classList.add('crop')
|
this.dom.classList.add('crop')
|
||||||
return this },
|
return this },
|
||||||
// XXX use JSON API...
|
// XXX use JSON API...
|
||||||
|
// XXX add depth argument + 'all'
|
||||||
uncrop: function(){
|
uncrop: function(){
|
||||||
if(this.__crop_stack == null){
|
if(this.__crop_stack == null){
|
||||||
return this}
|
return this}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user