From 7432b979113c6cb3ea71800fd7f19491b19863cd Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 2 Feb 2009 21:26:03 -0700 Subject: [PATCH] This is the code that implements popdowns. --- imp/js/src/DimpBase.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/imp/js/src/DimpBase.js b/imp/js/src/DimpBase.js index bad9c8eae..fd8836785 100644 --- a/imp/js/src/DimpBase.js +++ b/imp/js/src/DimpBase.js @@ -571,8 +571,16 @@ var DimpBase = { mf.addClassName('msgFilterDefault'); }, - _addMouseEvents: function(p) + _addMouseEvents: function(p, popdown) { + if (popdown) { + var bidelt = $(p.id); + bidelt.insert({ after: $($('popdown_img').cloneNode(false)).writeAttribute('id', p.id + '_img').show() }); + p.id += '_img'; + p.offset = bidelt.up(); + p.left = true; + } + p.onShow = this.bcache.get('onMS') || this.bcache.set('onMS', this._onMenuShow.bind(this)); DimpCore.DMenu.addElement(p.id, 'ctx_' + p.type, p); }, -- 2.11.0