forked from extern/egroupware
Fix to get the correct calendar droppable element for height calculation
This commit is contained in:
parent
45f4aca24c
commit
acdd076ce7
@ -147,8 +147,9 @@ app.classes.calendar = AppJS.extend(
|
|||||||
var dataResize = resizeHelper.split("|");
|
var dataResize = resizeHelper.split("|");
|
||||||
var time = dataResize[1].split(":");
|
var time = dataResize[1].split(":");
|
||||||
var dropDate = dataResize[0]+"T"+time[0]+time[1];
|
var dropDate = dataResize[0]+"T"+time[0]+time[1];
|
||||||
|
var calOwner = this.getAttribute('id').substring(this.getAttribute('id').lastIndexOf("_O")+2,this.getAttribute('id').lastIndexOf("_C"));
|
||||||
|
|
||||||
var drop = jQuery("div[id^='drop_"+dropDate+"']");
|
var drop = jQuery("div[id^='drop_"+dropDate+"_O"+calOwner+"']");
|
||||||
var newDuration = Math.round(this.clientHeight/drop[0].clientHeight)* parseInt(dataResize[2]) * 60;
|
var newDuration = Math.round(this.clientHeight/drop[0].clientHeight)* parseInt(dataResize[2]) * 60;
|
||||||
that.dropEvent(this.getAttribute('id'),dropDate,newDuration);
|
that.dropEvent(this.getAttribute('id'),dropDate,newDuration);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user