Ignore:
Timestamp:
06/08/09 11:12:33 (15 years ago)
Author:
amuller
Message:

Ticket #88 - Melhorias no módulo calendário novo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoCalendar/js/calendar_functions.js

    r920 r961  
    7979Calendar.prototype.getView = function(idEl, type, viewTime) 
    8080{ 
    81         if (typeof(type) == 'undefined') 
    82                 return false; 
    83         if (typeof(viewTime) == 'undefined') 
     81        if (typeof(type) == 'undefined'){ 
     82                type = document.getElementById('calViewType').value; 
     83                if (type.length < 1) 
     84                        return false; 
     85                } 
     86        if (typeof(viewTime) == 'undefined'){ 
     87                if (document.getElementById('calDateTime').value.length > 0) 
     88                        calendar.currentTime.setTime(document.getElementById('calDateTime').value*1000); 
    8489                viewTime = calendar.currentTime.getTime(); 
     90        } 
     91 
    8592        if (type == 'Year'){ 
    8693                var handler = function (data) { 
     
    128135                                document.getElementById("l_date").innerHTML += calendar.parseDate(id2timeStamp(document.getElementById('day').firstChild.id)); 
    129136                        if (viewType == "Month") 
    130                                 document.getElementById("l_date").innerHTML += calendar.parseMonth(id2timeStamp(document.getElementById('day').firstChild.id)); 
     137                                document.getElementById("l_date").innerHTML +=  
     138                                "<a href='"+window.location+ 
     139                                "?viewType=Month"+ 
     140                                "&datetime="+parseInt(id2timeStamp(document.getElementById('day').firstChild.id)/1000)+ 
     141                                "'>"+calendar.parseMonth(id2timeStamp(document.getElementById('day').firstChild.id))+"</a>"; 
    131142                        document.getElementById("l_date").innerHTML += "<a href=\"javascript:calendar.getView('div_main','"+viewType+"',this.nextView);\">&nbsp;\>\></a>"; 
    132143 
     
    335346                eventDiv.style.width = "60px"; 
    336347                eventDiv.style.height = "30px"; 
    337                 eventDiv.onmouseover = function () { if (this.childNodes[2].length > 12) { this.style.width = "120px"; this.style.height = "auto"; }  this.style.zIndex = 2; }; 
     348                eventDiv.onmouseover = function () { if (this.childNodes[2].length > 20) { this.style.width = "120px"; this.style.height = "auto"; }  this.style.zIndex = 2; }; 
    338349                eventDiv.onmouseout = function () { this.style.height = "30px"; this.style.width = "60px"; this.style.zIndex = 1; }; 
    339350                eventDiv.onclick = function () { calendar.getView('div_main','Day',eventDiv.childNodes[1].id); }; 
     
    375386        } 
    376387} 
    377  
    378  
Note: See TracChangeset for help on using the changeset viewer.