forked from 0x2620/pandora
handle pandora_text event
This commit is contained in:
parent
ac9ba57fd2
commit
8e4c16443e
1 changed files with 8 additions and 5 deletions
|
@ -65,19 +65,22 @@ pandora.ui.mainPanel = function() {
|
|||
}
|
||||
}
|
||||
},
|
||||
pandora_item: function(data) {
|
||||
if (!data.value || !data.previousValue) {
|
||||
that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
|
||||
}
|
||||
},
|
||||
pandora_section: function(data) {
|
||||
if (data.value != data.previousValue) {
|
||||
that.replaceElement(0, pandora.$ui.leftPanel = pandora.ui.leftPanel());
|
||||
that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
|
||||
}
|
||||
},
|
||||
pandora_item: function(data) {
|
||||
if (!data.value || !data.previousValue) {
|
||||
that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
|
||||
}
|
||||
},
|
||||
pandora_showsidebar: function(data) {
|
||||
data.value == that.options('elements')[0].collapsed && that.toggle(0);
|
||||
},
|
||||
pandora_text: function(data) {
|
||||
that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
|
||||
}
|
||||
});
|
||||
return that;
|
||||
|
|
Loading…
Reference in a new issue