forked from extern/egroupware
Cancel d-n-d action on taglist item edit button
This commit is contained in:
parent
5098baf538
commit
2fe71bdc48
@ -3936,9 +3936,9 @@ app.classes.mail = AppJS.extend(
|
|||||||
set_dragging_dndCompose: function ()
|
set_dragging_dndCompose: function ()
|
||||||
{
|
{
|
||||||
var zIndex = 100;
|
var zIndex = 100;
|
||||||
var self = this;
|
var dragItem = jQuery('div.ms-sel-item:not(div.ui-draggable)');
|
||||||
|
|
||||||
jQuery('div.ms-sel-item:not(div.ui-draggable)').draggable({
|
dragItem.draggable({
|
||||||
appendTo:'body',
|
appendTo:'body',
|
||||||
//Performance wise better to not add ui-draggable class to items since we are not using that class
|
//Performance wise better to not add ui-draggable class to items since we are not using that class
|
||||||
containment:'document',
|
containment:'document',
|
||||||
@ -3946,7 +3946,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
cursor:'move',
|
cursor:'move',
|
||||||
cursorAt:{left:2},
|
cursorAt:{left:2},
|
||||||
//cancel dragging on close button to avoid conflict with close action
|
//cancel dragging on close button to avoid conflict with close action
|
||||||
cancel:'.ms-close-btn',
|
cancel:'.ms-close-btn, .ms-edit-btn',
|
||||||
/**
|
/**
|
||||||
* function to act on draggable item on revert's event
|
* function to act on draggable item on revert's event
|
||||||
* @returns {Boolean} return true
|
* @returns {Boolean} return true
|
||||||
@ -3963,14 +3963,14 @@ app.classes.mail = AppJS.extend(
|
|||||||
*/
|
*/
|
||||||
start:function(event, ui)
|
start:function(event, ui)
|
||||||
{
|
{
|
||||||
if (event.ctrlKey)
|
var dragItem = jQuery(this);
|
||||||
|
if (event.ctrlKey || event.metaKey)
|
||||||
{
|
{
|
||||||
jQuery(this)
|
dragItem.addClass('mailCompose_copyEmail')
|
||||||
.addClass('mailCompose_copyEmail')
|
|
||||||
.css('cursor','copy');
|
.css('cursor','copy');
|
||||||
}
|
}
|
||||||
jQuery(this).css ('z-index',zIndex++);
|
dragItem.css ('z-index',zIndex++);
|
||||||
jQuery(this).css('position','absolute');
|
dragItem.css('position','absolute');
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -3992,12 +3992,13 @@ app.classes.mail = AppJS.extend(
|
|||||||
{
|
{
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
var emailTags = jQuery('#mail-compose_to,#mail-compose_cc,#mail-compose_bcc');
|
||||||
//Call to make new items draggable
|
//Call to make new items draggable
|
||||||
jQuery('#mail-compose_to,#mail-compose_cc,#mail-compose_bcc').hover(function(){
|
emailTags.hover(function(){
|
||||||
self.set_dragging_dndCompose();
|
self.set_dragging_dndCompose();
|
||||||
});
|
});
|
||||||
//Make used email-tag list widgets in mail compose droppable
|
//Make used email-tag list widgets in mail compose droppable
|
||||||
jQuery('#mail-compose_to,#mail-compose_cc,#mail-compose_bcc').droppable({
|
emailTags.droppable({
|
||||||
access:'.ms-sel-item',
|
access:'.ms-sel-item',
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1310,7 +1310,9 @@ div#mail-index div#mail-index_mailPreview div#mail-index_mailPreviewHeadersSubje
|
|||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
#mail-compose .mailComposeHeaders span.ms-close-btn,
|
#mail-compose .mailComposeHeaders span.ms-close-btn,
|
||||||
#mail-compose .mailComposeHeadersSection span.ms-close-btn {
|
#mail-compose .mailComposeHeadersSection span.ms-close-btn,
|
||||||
|
#mail-compose .mailComposeHeaders span.ms-edit-btn,
|
||||||
|
#mail-compose .mailComposeHeadersSection span.ms-edit-btn {
|
||||||
width: auto;
|
width: auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
|
@ -569,7 +569,7 @@ div#mail-index{
|
|||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.ms-close-btn {
|
span.ms-close-btn, span.ms-edit-btn{
|
||||||
width: auto;
|
width: auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
|
Loading…
Reference in New Issue
Block a user