Revision 903,
1.4 KB
checked in by niltonneto, 15 years ago
(diff) |
Importacao inicial do Expresso do Serpro
|
Line | |
---|
1 | Index: calendar.js |
---|
2 | =================================================================== |
---|
3 | RCS file: /cvsroot/egroupware/phpgwapi/js/jscalendar/calendar.js,v |
---|
4 | retrieving revision 1.2 |
---|
5 | diff -u -r1.2 calendar.js |
---|
6 | --- calendar.js 11 Nov 2003 14:50:19 -0000 1.2 |
---|
7 | +++ calendar.js 6 May 2004 07:38:00 -0000 |
---|
8 | @@ -601,6 +601,10 @@ |
---|
9 | date.setMonth(m); |
---|
10 | }; |
---|
11 | switch (el.navtype) { |
---|
12 | +// TEST RB |
---|
13 | + case 500: |
---|
14 | + window.location="/egroupware/?menuaction=calendar.uicalendar.week&date="+el.caldate.print('%Y%m%d'); |
---|
15 | + return; |
---|
16 | case 400: |
---|
17 | Calendar.removeClass(el, "hilite"); |
---|
18 | var text = Calendar._TT["ABOUT"]; |
---|
19 | @@ -806,8 +810,11 @@ |
---|
20 | for (i = 6; i > 0; --i) { |
---|
21 | row = Calendar.createElement("tr", tbody); |
---|
22 | if (this.weekNumbers) { |
---|
23 | - cell = Calendar.createElement("td", row); |
---|
24 | - cell.appendChild(document.createTextNode("")); |
---|
25 | +// cell = Calendar.createElement("td", row); |
---|
26 | +// cell.appendChild(document.createTextNode("")); |
---|
27 | +// TEST RB |
---|
28 | + cell = hh("",1,500) |
---|
29 | + cell.ttip = "go to week-view"; |
---|
30 | } |
---|
31 | for (var j = 7; j > 0; --j) { |
---|
32 | cell = Calendar.createElement("td", row); |
---|
33 | @@ -1076,6 +1083,15 @@ |
---|
34 | if (this.weekNumbers) { |
---|
35 | cell.className = "day wn"; |
---|
36 | cell.firstChild.data = week_number; |
---|
37 | +// TEST RB |
---|
38 | + cell.caldate = new Date(date); |
---|
39 | + if (!i && wday != 1) { |
---|
40 | + cell.caldate.setTime(date.getTime()-wday*Date.DAY); |
---|
41 | + } |
---|
42 | + else |
---|
43 | + { |
---|
44 | + cell.caldate.setDate(iday); |
---|
45 | + } |
---|
46 | cell = cell.nextSibling; |
---|
47 | } |
---|
48 | ++week_number; |
---|
Note: See
TracBrowser
for help on using the repository browser.