Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:31 PM.


Advertisement
Log in to turn off these ads.