mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +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
|
indent = node
|
||||||
node = 'focused' }
|
node = 'focused' }
|
||||||
var cur = this.get(node)
|
var cur = this.get(node)
|
||||||
if(!cur){
|
if(!cur){
|
||||||
return }
|
return }
|
||||||
var siblings = this.get(node, 'siblings')
|
var siblings = this.get(node, 'siblings')
|
||||||
// deindent...
|
// deindent...
|
||||||
if(!indent){
|
if(!indent){
|
||||||
var parent = this.get(node, 'parent')
|
var parent = this.get(node, 'parent')
|
||||||
if(!parent.classList.contains('.outline')){
|
if(parent != this.outline){
|
||||||
var children = siblings
|
var children = siblings
|
||||||
.slice(siblings.indexOf(cur)+1)
|
.slice(siblings.indexOf(cur)+1)
|
||||||
parent.after(cur)
|
parent.after(cur)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user