View Single Post
Old 09-20-2012, 03:30 PM   PM User | #1
obaez
New to the CF scene

 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
obaez is an unknown quantity at this point
Modify file Ecal.js to drag and drop in Shared View by assigned user

Please help!!!!

I need to know what code I have to add in Ecal.js to permit that the drag and drop between Assigned User work.

Line 152
if(ECAL.items_draggable && ActRecord.module_name != 'Tasks' && ActRecord.editview == 1){
$(("#" + elm_id))
.draggable(
{
revert: 'invalid',
containment: '#week_div',
distance: 8,
cursorAt: {top: 4,left: 4},
zIndex: 600,
start: function(event, ui) {
ECAL.dropped = 0;
ECAL.records_openable = false;
ECAL.old_caption = ui.helper.find('div.record_head').html();
ECAL.moved_from_cell = ui.helper.parent().attr("id");

Line 677
ECAL.move_activity = function (box_id,slot_id,ex_slot_id){
var u = $("#"+box_id);
if(u.size()){
var s = $("#"+slot_id);
u.appendTo($("#"+slot_id));
ECAL.align_divs(slot_id);
ECAL.align_divs(ex_slot_id);
ECAL.cut_record(box_id);
var start_text = ECAL.get_header_text(ECAL.act_types[u.attr('module_name')],s.attr('lang'),u.attr('status'),u.attr('record'));
u.attr("date_start",s.attr("datetime"));
u.find('div.record_head .start_time').html(s.attr('lang'));

See picture attached.

Regards
Attached Thumbnails
Click image for larger version

Name:	DragDropEcalendar.jpg
Views:	18
Size:	53.3 KB
ID:	11569  
obaez is offline   Reply With Quote