Changeset 7977 for branches


Ignore:
Timestamp:
03/06/13 19:15:51 (6 years ago)
Author:
douglas
Message:

Ticket #3340 - Falha ao alterar o grupo de uma tarefa no modulo expressocalendar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/prototype/modules/calendar/js/activity.helpers.js

    r7680 r7977  
    259259                    ['=', 'type', '2'],  
    260260                    ['>=','startTime', $.now()],  
    261                     ['in', 'calendar',  
    262                         [$('div.new-activity-win.active select[name="groupFilter"]').val()] 
    263                     ] 
     261                    ['in', 'calendar', [$('div.new-activity-win.active select[name="groupFilter"]').val()]]  
    264262                ], criteria: {filterTasks: true, deepness: 2} 
    265263        }; 
     
    412410    updateActivity = false; 
    413411 
    414     var objActivity = DataLayer.get('schedulable:activity', UI.dialogs.addActivity.find('input[name="idActivity"]').val()); 
     412    var idTask = UI.dialogs.addActivity.find('input[name="idActivity"]').val();  
     413  
     414    getSchedulable( idTask );  
     415  
     416    var objActivity = DataLayer.get('schedulable:activity', idTask );  
    415417    var blkAddTask = UI.dialogs.addActivity.find('#group_addactivity_details8'); 
    416418    var blkAuto = UI.dialogs.addActivity.find('#group_addactivity_details1'); 
     
    671673            text: false 
    672674        }).click(function () { 
    673             var task = DataLayer.get('schedulable:task', $(this).parents('li').find('input[name="idtask[]"]').val()); 
    674             taskDetails(task, true, '',true, null, true);            
     675  
     676            var idTask = $(this).parents('li').find('input[name="idtask[]"]').val()  
     677            getSchedulable(idTask);  
     678            var task = DataLayer.get('schedulable:task', idTask);  
     679            taskDetails(task, true, '',true, null, true);  
    675680        }) 
    676681        .addClass('tiny disable ui-button-disabled ui-state-disabled') 
Note: See TracChangeset for help on using the changeset viewer.