Changeset 7102


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

Location:
trunk/prototype/modules/calendar/js
Files:
2 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}); 
  • 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.