alecpl
2011-10-12 4b09fb6ce6564e901da0f9e9353af5224c8a6014
- Add possibility to auto-register menu objects in show_popup()


1 files modified
7 ■■■■ changed files
skins/default/functions.js 7 ●●●● patch | view | raw | blame | history
skins/default/functions.js
@@ -108,8 +108,13 @@
rcube_mail_ui.prototype = {
show_popup: function(popup, show)
show_popup: function(popup, show, config)
{
  var obj;
  // auto-register menu object
  if (!this.popups[popup] && (obj = $('#'+popup)) && obj.length)
    this.popups[popup] = $.extend(config, {id: popup, obj: obj});
  if (typeof this[popup] == 'function')
    return this[popup](show);
  else