mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 09:13:14 +00:00
Reformatted code
This commit is contained in:
parent
0b338d9131
commit
6e2f4275ca
1 changed files with 5 additions and 5 deletions
|
|
@ -32,11 +32,11 @@
|
|||
|
||||
self.toggle = function() {
|
||||
if (self.container.hasClass('stream-menu-closed')) {
|
||||
if (opts.childBlocks.length == 1) {
|
||||
if (opts.onChooseBlock) opts.onChooseBlock(opts.childBlocks[0]);
|
||||
} else {
|
||||
self.show();
|
||||
}
|
||||
if (opts.childBlocks.length == 1) {
|
||||
if (opts.onChooseBlock) opts.onChooseBlock(opts.childBlocks[0]);
|
||||
} else {
|
||||
self.show();
|
||||
}
|
||||
} else {
|
||||
self.hide();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue