CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Modify file Ecal.js to drag and drop in Shared View by assigned user (http://www.codingforums.com/showthread.php?t=273674)

obaez 09-20-2012 03:30 PM

Modify file Ecal.js to drag and drop in Shared View by assigned user
 
1 Attachment(s)
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


All times are GMT +1. The time now is 10:46 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.