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/task.helpers.js

    r7068 r7102  
    515515        timeFormat: "hh:mm tt", 
    516516        onSelect: function (selectedDateTime) { 
     517                if ((selectedDateTime.value == '__:__') || (selectedDateTime.value == '__:__ __')) 
     518                                selectedDateTime.value = ""; 
     519                           
    517520            if (!(User.preferences.hourFormat.length == 5)) $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 
    518521            updateMap(); 
     
    520523        onClose: function (selectedDateTime) { 
    521524            if (!(User.preferences.hourFormat.length == 5)) $(this).val(selectedDateTime.replace(/[\.]/gi, "")); 
     525        }, 
     526        beforeShow: function (selectedDateTime) { 
     527                        if ((selectedDateTime.value == '__:__') || (selectedDateTime.value == '__:__ __')) 
     528                                selectedDateTime.value = ""; 
    522529        } 
    523530    }); 
Note: See TracChangeset for help on using the changeset viewer.