Fixed the following problems with SVN 2523:

#1- functions.js:

Line 125: add ...

  this.messagemenu = $('#messagemenu');
}

rcube_mail_ui.prototype = {

show_messagemenu: function(show)
{
  if (typeof show == 'undefined')
    show = this.messagemenu.is(':visible') ? false : true;
  
  var ref = rcube_find_object('messagemenulink');
  //alert(ref);
  if (show && ref)
    this.messagemenu.css({ left:ref.offsetLeft, top:(ref.offsetTop + 
ref.offsetHeight) });
  
  this.messagemenu[show?'show':'hide']();
},

#2- mail.html:

include markmessagemenu.html after "messagemenulink", otherwise positioning 
does not work.

#3- mail.css:

add:

#messagemenu
{
  width: 172px;
}

width: auto in IE7 is to wide, because list contains a horizontal ruler (<hr />)

Regards,
Roland


----- Original Message ----- 
From: "A.L.E.C" <[email protected]>
To: "RoundCube Dev" <[email protected]>
Sent: Saturday, May 23, 2009 9:15 AM
Subject: [RCD] message menu button


> I'm working on a new button in toolbar (mail.html and message.html 
> templates). This will be a popup menu like markmenu,
> will contains container for plugins and three actions (for start):
> - open message in new window
> - show source (in new window)
> - Download as .eml file
> The button will be enabled in message view or in mailbox view when one
> message is selected. I'll remove current viewsource button. So,
> now I need your opinion about:
> 1. Should I add 'print' action to message menu, and remove print button 
> from toolbar? It's reasonable, print is a one-message-action (and we 
> need more place for plugin buttons).
> 2. I've got no image for the button, any ideas?
> 
> -- 
> Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
> LAN Management System Developer http://lms.org.pl
> Roundcube Webmail Developer http://roundcube.net
> _______________________________________________
> List info: http://lists.roundcube.net/dev/
>


 --- 8< --- detachments --- 8< ---
 The following attachments have been detached and are available for viewing.
  http://detached.gigo.com/rc/bc/T1sr3uxO/mail.css
  http://detached.gigo.com/rc/bc/T1sr3uxO/functions.js
  http://detached.gigo.com/rc/bc/T1sr3uxO/mail.html
 Only click these links if you trust the sender, as well as this message.
 --- 8< --- detachments --- 8< ---

_______________________________________________
List info: http://lists.roundcube.net/dev/

Reply via email to