});
var notify = $('kronolithNotifications'),
className = m.type.replace(/\./, '-'),
- order = 'horde-error,horde-warning,horde-message,horde-success,kronolithNotifications';
- if (!notify.className ||
- order.indexOf(notify.className) > order.indexOf(className)) {
+ order = 'horde-error,horde-warning,horde-message,horde-success,kronolithNotifications',
+ open = notify.hasClassName('kronolithClose');
+ notify.removeClassName('kronolithClose');
+ if (order.indexOf(notify.className) > order.indexOf(className)) {
notify.className = className;
}
- notify.update(Kronolith.text.alerts.interpolate({ count: ++this.growls }));
- notify.up().show();
+ if (open) {
+ notify.addClassName('kronolithClose');
+ }
break;
}
}, this);
break;
case 'kronolithNotifications':
+ var img = elt.down('img'), iconName;
if (this.Growler.toggleLog()) {
- elt.update(Kronolith.text.hidelog);
+ elt.title = Kronolith.text.hidelog;
+ elt.addClassName('kronolithClose');
} else {
- $('kronolithNotifications').update(Kronolith.text.alerts.interpolate({ count: this.growls }));
+ elt.title = Kronolith.text.alerts.interpolate({ count: this.growls });
+ elt.removeClassName('kronolithClose');
}
+ Horde_ToolTips.detach(elt);
+ Horde_ToolTips.attach(elt);
break;
}
<?php endif; ?>
<?php endforeach; ?>
</ul>
- <span class="kronolithSeparator">|</span>
</div>
<?php endif; ?>
+ <a href="#" id="kronolithNotifications" class="kronolithNotifications" title="<?php echo ("0 notifications") ?>"></a>
+ <span class="kronolithSeparator">|</span>
<a href="#" id="kronolithOptions"><?php echo _("Options") ?></a><?php if ($help_link) echo ' <span class="kronolithSeparator">|</span> ' . $help_link; if ($logout_link) echo ' <span class="kronolithSeparator">|</span> ' . $logout_link ?>
</div>
<!-- end services -->
<div class="kronolithDateChoice" <?php $todayAccessKey = Horde::getAccessKey(_("_Today")); echo Horde::getAccessKeyAndTitle(_("_Today"), true) ?>>
<div><?php echo $today->strftime('%a, %e %b %Y') ?></div>
</div>
- <a href="#" id="kronolithNotifications" class="kronolithNotifications"><?php echo _("no notifications") ?></a>
<div id="kronolithNav">
<a id="kronolithNavDay" accesskey="1"><span><?php echo _("Day") ?></span></a>
<a id="kronolithNavWeek" accesskey="2"><span><?php echo _("Week") ?></span></a>
--- /dev/null
+../../../calendar/kronolith/themes/sapo/
\ No newline at end of file
margin-right: 10px;
text-align: right;
}
+.kronolithNotifications {
+ background-color: #d9d9d9
+}
#kronolithNotifications {
float: left;
- padding: 0 10px;
+ width: 23px;
height: 23px;
line-height: 23px;
border: 1px solid #999;
- -moz-border-radius: 0 5px 5px 0;
- -webkit-border-radius: 0 5px 5px 0;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ background: #d9d9d9 url("graphics/alerts/message.png") no-repeat center center;
}
-.kronolithNotifications {
- background-color: #d9d9d9;
+#kronolithNotifications.horde-error {
+ background-image: url("graphics/alerts/error.png")
}
-#kronolithNotifications.kronolithNotifications {
- background-color: #f0f0f0;
+#kronolithNotifications.horde-success {
+ background-image: url("graphics/alerts/success.png")
+}
+#kronolithNotifications.horde-warning {
+ background-image: url("graphics/alerts/warning.png")
+}
+#kronolithNotifications.kronolithClose {
+ background-image: url("graphics/close.png")
}
/* Main area */
margin-right: 1px;
background: #d6d6d6;
border: 1px solid #999;
- -moz-border-radius: 5px 0 0 5px;
- -webkit-border-radius: 5px 0 0 5px;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
font-weight: bold;
cursor: pointer;
}
line-height: 15px;
padding: 2px;
text-align: center;
- background: transparent url("graphics/new_small_fade.png") 3px 5px no-repeat;
+ background: transparent url("graphics/new_small_fade.png") no-repeat 3px 5px;
}
.kronolithAddEvent:hover {
background-image: url("graphics/new_small.png");
cursor: move;
}
.kronolithEvent.kronolithEditable .kronolithDragger {
- background: transparent url("graphics/drag-handle.png") center center no-repeat;
+ background: transparent url("graphics/drag-handle.png") no-repeat center center;
}
.kronolithDragger.drag {
- background: transparent url("graphics/drag-handle.png") center center no-repeat;
+ background: transparent url("graphics/drag-handle.png") no-repeat center center;
opacity: .8;
filter: alpha(opacity=80);
}
table.kronolithView td.button {
border-color: #999;
}
+#kronolithNotifications {
+ background-image: url("graphics/alerts/message.png");
+}
+#kronolithNotifications.horde-error {
+ background-image: url("graphics/alerts/error.png")
+}
+#kronolithNotifications.horde-success {
+ background-image: url("graphics/alerts/success.png")
+}
+#kronolithNotifications.horde-warning {
+ background-image: url("graphics/alerts/warning.png")
+}
+#kronolithNotifications.kronolithClose {
+ background-image: url("graphics/close.png")
+}
.day-eventbox {
padding: 6px;
}
+
+#kronolithNotifications {
+ background-image: url("graphics/alerts/message.png");
+}
+#kronolithNotifications.horde-error {
+ background-image: url("graphics/alerts/error.png")
+}
+#kronolithNotifications.horde-success {
+ background-image: url("graphics/alerts/success.png")
+}
+#kronolithNotifications.horde-warning {
+ background-image: url("graphics/alerts/warning.png")
+}
+#kronolithNotifications.kronolithClose {
+ background-image: url("graphics/close.png")
+}