Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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 Attached Thumbnails Modify file Ecal.js to drag and drop in Shared View by assigned user-dragdropecalendar.jpg  


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •