Ignore:
Timestamp:
08/22/12 15:07:23 (12 years ago)
Author:
fernando
Message:

Ticket #3067 - Problema para setar o horário na criação de uma tarefa

File:
1 edited

Legend:

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

    r7022 r7102  
    942942    timeFormat: "hh:mm tt", 
    943943    onSelect: function (selectedDateTime){ 
    944         if(!(User.preferences.hourFormat.length == 5)) 
    945             $(this).val(selectedDateTime.replace(/[\.]/gi, ""));                                                                 
    946         updateMap(); 
     944        if ((selectedDateTime.value == '__:__') || (selectedDateTime.value == '__:__ __')) 
     945                          selectedDateTime.value = ""; 
     946                if(!(User.preferences.hourFormat.length == 5)) 
     947                $(this).val(selectedDateTime.replace(/[\.]/gi, ""));                                                             
     948                updateMap(); 
    947949    }, 
    948950    onClose : function (selectedDateTime){ 
    949951        if(!(User.preferences.hourFormat.length == 5)) 
    950952            $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 
     953    }, 
     954    beforeShow: function (selectedDateTime) { 
     955                if ((selectedDateTime.value == '__:__') || (selectedDateTime.value == '__:__ __')) 
     956                        selectedDateTime.value = ""; 
    951957    } 
    952958}); 
Note: See TracChangeset for help on using the changeset viewer.