source: plugins/widget_calendar_1_9/img_pack/calendar_custom.js @ 6

Last change on this file since 6 was 6, checked in by guille, 17 years ago

plugin agenda para poner eventos en SPIP.js

File size: 2.5 KB
Line 
1function findPosX(obj)
2{
3        var curleft = 0;
4        curleft += obj.offsetLeft;
5        if (obj.offsetParent)
6        {
7                while (obj.offsetParent)
8                {
9                        obj = obj.offsetParent;
10                        curleft += obj.offsetLeft;
11                }
12        }
13        else if (obj.x)
14                curleft += obj.x;
15        return curleft;
16}
17
18function findPosY(obj)
19{
20        var curtop = 0;
21        curtop += obj.offsetTop;
22        if (obj.offsetParent)
23        {
24                while (obj.offsetParent)
25                {
26                        obj = obj.offsetParent;
27                        curtop += obj.offsetTop;
28                }
29        }
30        else if (obj.y)
31                curtop += obj.y;
32        return curtop;
33}
34
35
36// Calendrier popup 2 pages International ------
37
38SPIP.widget.Calendar2up_INT_Cal = function(id, containerId, monthyear, selected) {
39        if (arguments.length > 0)
40        {
41                this.init(id, containerId, monthyear, selected);
42        }
43}
44
45SPIP.widget.Calendar2up_INT_Cal.prototype = new SPIP.widget.Calendar2up_Cal();
46
47SPIP.widget.Calendar2up_INT = function(id, containerId, monthyear, selected) {
48        if (arguments.length > 0)
49        {       
50                var outerContainer = document.getElementById(containerId);
51       
52                outerContainer.innerHTML="";
53                if (SPIP.widget.Calendar_Core._getBrowser() == "ie") {
54                        outerContainer.innerHTML="<iframe src='about:blank' scrolling='no' frameborder='0' style='position:absolute;left:0px;top:0px;z-index:0;' class='califrame'></iframe>";
55                }
56                this.buildWrapper(containerId);
57                this.init(2, id, containerId, monthyear, selected);
58        }
59}
60
61SPIP.widget.Calendar2up_INT.prototype = new SPIP.widget.Calendar2up();
62
63SPIP.widget.Calendar2up_INT.prototype.constructChild = function(id,containerId,monthyear,selected) {
64        var cal = new SPIP.widget.Calendar2up_INT_Cal(id,containerId,monthyear,selected);
65        return cal;
66};
67       
68
69
70
71// Calendrier popup 2 pages International MultiSelect ------
72SPIP.widget.Calendar2up_INT_Cal_multi = function(id, containerId, monthyear, selected) {
73        if (arguments.length > 0)
74        {
75                this.init(id, containerId, monthyear, selected);
76        }
77}
78
79SPIP.widget.Calendar2up_INT_Cal_multi.prototype = new SPIP.widget.Calendar2up_Cal();
80SPIP.widget.Calendar2up_INT_multi = function(id, containerId, monthyear, selected) {
81        if (arguments.length > 0)
82        {       
83                this.buildWrapper(containerId);
84                this.init(2, id, containerId, monthyear, selected);
85        }
86}
87
88SPIP.widget.Calendar2up_INT_multi.prototype = new SPIP.widget.Calendar2up();
89
90SPIP.widget.Calendar2up_INT_multi.prototype.constructChild = function(id,containerId,monthyear,selected) {
91        var cal = new SPIP.widget.Calendar2up_INT_Cal_multi(id,containerId,monthyear,selected);
92        return cal;
93};
Note: See TracBrowser for help on using the repository browser.