From 2a4703b0b5edafcce1ec4d47f0f9b6b518b7ed86 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 13 Jan 2011 22:10:42 +0000 Subject: [PATCH] make list lose focus on section collapse --- build/js/ox.ui.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 39904256..1d3b69d7 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -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') {