diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php
index 2829f67053..f7190448eb 100644
--- a/calendar/inc/class.calendar_uiviews.inc.php
+++ b/calendar/inc/class.calendar_uiviews.inc.php
@@ -140,7 +140,7 @@ class calendar_uiviews extends calendar_ui
*/
function __construct($set_states=null)
{
-
+
parent::__construct(false,$set_states); // call the parent's constructor
$this->extraRowsOriginal = $this->extraRows; //save original extraRows value
@@ -569,12 +569,13 @@ class calendar_uiviews extends calendar_ui
$width = $this->time2pos($event['end_m'] - $event['start_m']);
$color = $data['color'] ? $data['color'] : 'gray';
+ $tooltip = html::htmlspecialchars(str_replace(array("\n","\r","'",'"'),array('','',"\\'",'"'),$data['tooltip']));
$content .= $indent.'
0,'Padding'=>0)).
- '>'."\n".$data['html'].$indent."
\n";
+ '>'."\n".$data['html'].$indent.'" data-tooltip ="'.$tooltip ."\n";
}
}
}
diff --git a/calendar/js/app.js b/calendar/js/app.js
index 07afcb02bf..a48f592c0d 100644
--- a/calendar/js/app.js
+++ b/calendar/js/app.js
@@ -266,6 +266,45 @@ app.classes.calendar = AppJS.extend(
jQuery(this).tooltip("disable");
}
});
+
+ //Click Handler for calendar planner
+ jQuery("div.calendar_plannerEvent").on({
+ click:function(ev){
+ var eventId = ev.currentTarget.id.replace(/drag_/g,'').split("_")[0];
+ var startDate = ev.currentTarget.getAttribute('data-resize').split("|")[0];
+ if (ev.currentTarget.id.match(/drag_/g))
+ {
+ egw.open(eventId,'calendar','edit');
+ }
+ else
+ {
+ that.edit_series(event,eventId,startDate);
+ }
+ },
+ mouseover: function(){
+
+ var ttp = jQuery(this).tooltip({
+ items: "[data-tooltip]",
+ content: function()
+ {
+ var elem = jQuery(this);
+ if (elem.is("[data-tooltip]"))
+ return this.getAttribute('data-tooltip') ;
+ },
+ track:true,
+
+ open: function(event,ui){
+ ui.tooltip.removeClass("ui-tooltip");
+ ui.tooltip.addClass("calendar_uitooltip");
+ }
+ });
+ ttp.tooltip("enable");
+ },
+ mousedown: function(){
+ jQuery(this).tooltip("disable");
+ }
+ });
+
//onClick Handler for calendar cells
jQuery("div.calendar_calAddEvent").click(function(ev)
{