From ad07c416bf27186541f9b625c7a9cf49a1e9b0ce Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 26 May 2015 16:33:35 +0000 Subject: [PATCH] adding an own recipients onChange callback, as set_dragging_dndCompose is also called on hover --- mail/js/app.js | 10 +++++++++- mail/templates/default/compose.xet | 6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 4afc1c7e15..cccecb37f3 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -4128,7 +4128,7 @@ app.classes.mail = AppJS.extend( * - make them draggable * - check if we have keys for recipients, if we compose an encrypted mail **/ - set_dragging_dndCompose: function () + recipients_onchange: function() { // if we compose an encrypted mail, check if we have keys for new recipient if (this.mailvelope_editor) @@ -4139,6 +4139,14 @@ app.classes.mail = AppJS.extend( self.egw.message(_err.message, 'error'); }); } + this.set_dragging_dndCompose(); + }, + + /** + * Make recipients draggable + */ + set_dragging_dndCompose: function () + { var zIndex = 100; var dragItems = jQuery('div.ms-sel-item:not(div.ui-draggable)'); dragItems.each(function(i,item){ diff --git a/mail/templates/default/compose.xet b/mail/templates/default/compose.xet index ffed21997f..4ff56ee26c 100644 --- a/mail/templates/default/compose.xet +++ b/mail/templates/default/compose.xet @@ -54,7 +54,7 @@ - + @@ -62,12 +62,12 @@ - + - +