mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 01:50:07 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
4690bc0770
commit
34105a355c
@ -281,13 +281,13 @@ var Outline = {
|
||||
indent = node
|
||||
node = 'focused' }
|
||||
var cur = this.get(node)
|
||||
if(!cur){
|
||||
if(!cur){
|
||||
return }
|
||||
var siblings = this.get(node, 'siblings')
|
||||
// deindent...
|
||||
if(!indent){
|
||||
var parent = this.get(node, 'parent')
|
||||
if(!parent.classList.contains('.outline')){
|
||||
if(parent != this.outline){
|
||||
var children = siblings
|
||||
.slice(siblings.indexOf(cur)+1)
|
||||
parent.after(cur)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user