From: Michael M Slusarz Date: Tue, 3 Feb 2009 04:26:03 +0000 (-0700) Subject: This is the code that implements popdowns. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7432b979113c6cb3ea71800fd7f19491b19863cd;p=horde.git This is the code that implements popdowns. --- 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); },