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