make list lose focus on section collapse

This commit is contained in:
rlx 2011-01-13 22:10:42 +00:00
parent 73e6ce7292
commit 2a4703b0b5

View file

@ -7810,6 +7810,16 @@ requires
} }
} }
that.gainFocus = function() {
that.$body.gainFocus();
return that;
};
that.loseFocus = function() {
that.$body.loseFocus();
return that;
}
that.reloadList = function() { that.reloadList = function() {
that.$body.reloadList(); that.$body.reloadList();
return that; return that;
@ -9455,6 +9465,7 @@ requires
}); });
} }
function clickMenu(event, data) { function clickMenu(event, data) {
// fixme: not the best event name
that.triggerEvent('click', data); that.triggerEvent('click', data);
} }
function dblclickTitlebar(e) { function dblclickTitlebar(e) {
@ -9469,6 +9480,9 @@ requires
that.$content.animate({ that.$content.animate({
marginTop: marginTop + 'px' marginTop: marginTop + 'px'
}, 200); }, 200);
that.triggerEvent('toggle', {
collapsed: self.options.collapsed
});
} }
self.onChange = function(key, value) { self.onChange = function(key, value) {
if (key == 'collapsed') { if (key == 'collapsed') {