Lines 81-86
Calendar.is_ie = ( /msie/i.test(navigator.userAgent) &&
Link Here
|
81 |
!/opera/i.test(navigator.userAgent) ); |
81 |
!/opera/i.test(navigator.userAgent) ); |
82 |
|
82 |
|
83 |
Calendar.is_ie5 = ( Calendar.is_ie && /msie 5\.0/i.test(navigator.userAgent) ); |
83 |
Calendar.is_ie5 = ( Calendar.is_ie && /msie 5\.0/i.test(navigator.userAgent) ); |
|
|
84 |
Calendar.is_ie7up = ( Calendar.is_ie && parseFloat(navigator.userAgent.replace(/.*msie ([0-9]+).*/i, "$1" )) >= 7 ); |
84 |
|
85 |
|
85 |
/// detect Opera browser |
86 |
/// detect Opera browser |
86 |
Calendar.is_opera = /opera/i.test(navigator.userAgent); |
87 |
Calendar.is_opera = /opera/i.test(navigator.userAgent); |
Lines 1308-1314
Calendar.prototype.showAtElement = function (el, opts) {
Link Here
|
1308 |
document.body.appendChild(cp); |
1309 |
document.body.appendChild(cp); |
1309 |
var br = Calendar.getAbsolutePos(cp); |
1310 |
var br = Calendar.getAbsolutePos(cp); |
1310 |
document.body.removeChild(cp); |
1311 |
document.body.removeChild(cp); |
1311 |
if (Calendar.is_ie) { |
1312 |
if (Calendar.is_ie && !Calendar.is_ie7up) { |
1312 |
br.y += document.body.scrollTop; |
1313 |
br.y += document.body.scrollTop; |
1313 |
br.x += document.body.scrollLeft; |
1314 |
br.x += document.body.scrollLeft; |
1314 |
} else { |
1315 |
} else { |
1315 |
- |
|
|