Changeset 7999


Ignore:
Timestamp:
03/12/13 11:15:15 (6 years ago)
Author:
thiago
Message:

Ticket #3383 - A melhoria apenas entrara em vigor apenas se o horario antigo é menor do que o novo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/helpers.js

    r7997 r7999  
    992992 
    993993if($("#calendar").fullCalendar('getView').name == "month"){ 
    994  
     994    var oldTime = UI.dialogs.addEvent.find('input.start-time').val(); 
     995     
    995996    UI.dialogs.addEvent.find('input.start-time').timepicker({ 
    996997        onSelect: function(selectedDateTime){ 
     998 
     999            if( Date.parse(selectedDateTime) < Date.parse(oldTime) ) return true; 
     1000 
    9971001            var time = selectedDateTime.split(":"); 
    9981002            var hh = time[0]; 
     
    10011005            dt = new Date(); 
    10021006            dt.setHours(hh, mm); 
    1003             dt.addMinutes(30); 
     1007            dt.addMinutes(parseInt(User.preferences.defaultDuration)); 
    10041008 
    10051009            var minutes = dt.getMinutes().toString(); 
Note: See TracChangeset for help on using the changeset viewer.