if (title) {
td.writeAttribute('title', title).addClassName('kronolithHasEvents');
if (td.readAttribute('nicetitle')) {
- ToolTips.detach(td);
+ Horde_ToolTips.detach(td);
}
- ToolTips.attach(td);
+ Horde_ToolTips.attach(td);
if (busy) {
td.addClassName('kronolithIsBusy');
}
if (Object.isFunction(stripeAllElements)) {
stripeAllElements();
}
- if (typeof ToolTips == 'object') {
- ToolTips.out();
- ToolTips.attachBehavior();
+ if (!Object.isUndefined(Horde_ToolTips)) {
+ Horde_ToolTips.out();
+ Horde_ToolTips.attachBehavior();
}
var titleDiv = $('view_title');
/* Horde's js */
$hjs_path = $registry->get('jsuri', 'horde');
- $hjsurl = Horde::url($hjs_path . '/horde-embed.js', true);
+ $hjsurl = Horde::url($hjs_path . '/tooltips.js', true);
$pturl = Horde::url($hjs_path . '/prototype.js', true);
/* CSS */
$html = <<<EOT
//<![CDATA[
if (typeof kronolith == 'undefined') {
+ if (typeof Prototype == 'undefined') {
+ document.write('<script type="text/javascript" src="$pturl"></script>');
+ }
if (typeof Horde_ToolTips == 'undefined') {
+ Horde_ToolTips_Autoload = false;
document.write('<script type="text/javascript" src="$hjsurl"></script>');
document.write('<link type="text/css" rel="stylesheet" href="$hcssurl" />');
}
- if (typeof Prototype == 'undefined') {
- document.write('<script type="text/javascript" src="$pturl"></script>');
- }
kronolith = new Object();
kronolithNodes = new Array();
document.write('<script type="text/javascript" src="$jsurl"></script>');