Changeset 8054 for branches/2.5


Ignore:
Timestamp:
03/21/13 16:49:31 (11 years ago)
Author:
douglas
Message:

Ticket #3383 - Melhorias ao alterar data e hora de eventos

Location:
branches/2.5/prototype/modules/calendar/js
Files:
2 edited

Legend:

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

    r8050 r8054  
    177177 */ 
    178178 
    179 function eventDetails( objEvent, decoded, path, isMail, repeat) 
     179function eventDetails( objEvent, decoded, path, isMail, repeat, buttonClicked) 
    180180{ 
    181181 
     
    197197    if(path == undefined) 
    198198        path = ""; 
    199           
    200199          
    201200    if( !decoded ) 
     
    10951094    var oldTime = UI.dialogs.addEvent.find('input.start-time').val(); 
    10961095    $(".start-time").focusout(function(data){  
    1097         if($("#calendar").fullCalendar('getView').name == "month"){  
     1096        if($("#calendar").fullCalendar('getView').name == "month" || buttonClicked) {  
    10981097            setTime( $(this).val() );  
    10991098        }  
     
    11041103        timeFormat: "hh:mm tt",  
    11051104        onSelect: function( selectedDateTime ){  
    1106             if($("#calendar").fullCalendar('getView').name == "month"){  
     1105            if($("#calendar").fullCalendar('getView').name == "month" || buttonClicked) {  
    11071106                if ( selectedDateTime.indexOf("p.m.") == -1 || !selectedDateTime.indexOf("a.m.") == -1 ) {  
    11081107                    var selectedTime = selectedDateTime.split(":");  
  • branches/2.5/prototype/modules/calendar/js/init.js

    r8021 r8054  
    149149                                endTime: dateCalendar.decodeRange(startEvent, (!!User.preferences.defaultCalendar ? (   !!Calendar.signatureOf[User.preferences.defaultCalendar].calendar.defaultDuration ?   
    150150                                                (Calendar.signatureOf[User.preferences.defaultCalendar].calendar.defaultDuration) : (User.preferences.defaultDuration)) : (User.preferences.defaultDuration))) 
    151                         }, true ); 
     151                        }, true, undefined, undefined, undefined, true ); 
    152152                }); 
    153153                 
Note: See TracChangeset for help on using the changeset viewer.