var cell, i, i_max, p, row, startOfView, vp,
count = 1,
- div = $('horde-calendar'),
+ div = $('hordeCalendar'),
tbody = div.down('TBODY'),
// Requires init above
if (today_year == this.year &&
today_month == this.month &&
today_day == i) {
- cell.writeAttribute({ className: 'today' });
+ cell.writeAttribute({ className: 'hordeCalendarToday' });
}
if (open_year == this.year &&
open_month == this.month &&
open_day == i) {
- cell.addClassName('current');
+ cell.addClassName('hordeCalendarCurrent');
}
row.insert(cell.insert(new Element('A', { href: '#' }).insert(i).observe('click', this.dayOnClick.bindAsEventListener(this))));
// IE 6 only.
if (Prototype.Browser.IE && !window.XMLHttpRequest) {
- iframe = $('iframe_tt');
+ iframe = $('hordeCalendarIframe');
if (!iframe) {
- iframe = new Element('IFRAME', { name: 'iframe_tt', id: 'iframe_tt', src: 'javascript:false;', scrolling: 'no', frameborder: 0 }).hide();
+ iframe = new Element('IFRAME', { name: 'hordeCalendarIframe', id: 'hordeCalendarIframe', src: 'javascript:false;', scrolling: 'no', frameborder: 0 }).hide();
document.body.appendChild(iframe);
}
iframe.clonePosition(div).setStyle({
hideCal: function()
{
- var iefix = $('ieframe_tt');
+ var iefix = $('hordeCalendarIframe');
- $('horde-calendar').hide();
+ $('hordeCalendar').hide();
if (iefix) {
iefix.hide();
{
var i, link, row,
thead = new Element('THEAD'),
- table = new Element('TABLE', { className: 'calendarPopup', cellSpacing: 0 }).insert(thead).insert(new Element('TBODY'));
+ table = new Element('TABLE', { className: 'hordeCalendarPopup', cellSpacing: 0 }).insert(thead).insert(new Element('TBODY'));
// Title bar.
link = new Element('A', { href: '#' }).insert('x');
}
thead.insert(row);
- $(document.body).insert({ bottom: new Element('DIV', { id: 'horde-calendar' }).setStyle({ position: 'absolute' }).hide().insert(table) });
+ $(document.body).insert({ bottom: new Element('DIV', { id: 'hordeCalendar' }).setStyle({ position: 'absolute' }).hide().insert(table) });
}
};
var tbody = document.createElement('TBODY');
table.appendChild(thead);
table.appendChild(tbody);
- table.className = 'calendarPopup';
+ table.className = 'hordeCalendarPopup';
table.cellSpacing = 0;
// Title bar.
if (today_year == year &&
today_month == month &&
today_day == i) {
- cell.className = 'today';
+ cell.className = 'hordeCalendarToday';
}
if (open_year == year &&
open_month == month &&
open_day == i) {
if (cell.className.length) {
- cell.className += ' current';
+ cell.className += ' hordeCalendarCurrent';
} else {
- cell.className = 'current';
+ cell.className = 'hordeCalendarCurrent';
}
}
}
/* Calendar Popup. */
-table.calendarPopup {
+.hordeCalendarPopup {
border: 1px solid #ccc;
background: #fff;
width: 12em;
}
-.calendarPopup thead {
+.hordeCalendarPopup thead {
font-weight: bold;
}
-.calendarPopup th {
+.hordeCalendarPopup th {
border-bottom: 1px solid #ccc;
}
-.calendarPopup tbody {
+.hordeCalendarPopup tbody {
text-align: right;
}
-.calendarPopup a {
+.hordeCalendarPopup a {
color: #000;
display: block;
padding: 2px;
}
-.calendarPopup tbody a:hover {
+.hordeCalendarPopup tbody a:hover {
background: #ffc;
}
-.calendarPopup .current {
+.hordeCalendarPopup .hordeCalendarCurrent {
font-weight: bold;
background: #eef;
}
-.calendarPopup .today {
+.hordeCalendarPopup .hordeCalendarToday {
font-weight: bold;
}
var tbody = document.createElement('TBODY');
table.appendChild(thead);
table.appendChild(tbody);
- table.className = 'calendarPopup';
+ table.className = 'hordeCalendarPopup';
table.cellSpacing = 0;
// Title.
if (thisYear == year &&
today.getMonth() == month &&
today.getDate() == i) {
- cell.className = 'today';
+ cell.className = 'hordeCalendarToday';
}
link = document.createElement('A');
link.href = '<?php echo Horde::applicationUrl('day.php') ?>';