[Svn] r2524 - trunk/roundcubemail/skins/default

trac at roundcube.net trac at roundcube.net
Sun May 24 10:03:59 CEST 2009


Author: alec
Date: 2009-05-24 03:03:59 -0500 (Sun, 24 May 2009)
New Revision: 2524

Modified:
   trunk/roundcubemail/skins/default/functions.js
Log:
- messagemenu


Modified: trunk/roundcubemail/skins/default/functions.js
===================================================================
--- trunk/roundcubemail/skins/default/functions.js	2009-05-23 14:17:07 UTC (rev 2523)
+++ trunk/roundcubemail/skins/default/functions.js	2009-05-24 08:03:59 UTC (rev 2524)
@@ -122,6 +122,7 @@
 {
   this.markmenu = $('#markmessagemenu');
   this.searchmenu = $('#searchmenu');
+  this.messagemenu = $('#messagemenu');
 }
 
 rcube_mail_ui.prototype = {
@@ -138,6 +139,19 @@
   this.markmenu[show?'show':'hide']();
 },
 
+show_messagemenu: function(show)
+{
+  if (typeof show == 'undefined')
+    show = this.messagemenu.is(':visible') ? false : true;
+
+  var ref = rcube_find_object('messagemenulink');
+  if (show && ref) {
+    var pos = $(ref).offset();
+    this.messagemenu.css({ left:pos.left, top:(pos.top + ref.offsetHeight) });
+  }
+  this.messagemenu[show?'show':'hide']();
+},
+
 show_searchmenu: function(show)
 {
   if (typeof show == 'undefined')
@@ -173,6 +187,8 @@
 {
   if (this.markmenu && this.markmenu.is(':visible') && rcube_event.get_target(evt) != rcube_find_object('markreadbutton'))
     this.show_markmenu(false);
+  else if (this.messagemenu && this.messagemenu.is(':visible') && rcube_event.get_target(evt) != rcube_find_object('messagemenulink'))
+    this.show_messagemenu(false);
   else if (this.searchmenu && this.searchmenu.is(':visible') && rcube_event.get_target(evt) != rcube_find_object('searchmod')) {
     var menu = rcube_find_object('searchmenu');
     var target = rcube_event.get_target(evt);
@@ -192,6 +208,8 @@
       this.show_markmenu(false);
     if (this.searchmenu && this.searchmenu.is(':visible'))
       this.show_searchmenu(false);
+    if (this.messagemenu && this.messagemenu.is(':visible'))
+      this.show_messagemenu(false);
   }
 }
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list