From 628b1369f7a73b6a03e9dde5265471a102476c2d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 15 Oct 2014 12:03:15 +0000 Subject: [PATCH] Make calendar's tooltip scrollable --- calendar/js/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/calendar/js/app.js b/calendar/js/app.js index a0f4fce8e5..87f9544428 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -442,6 +442,17 @@ app.classes.calendar = AppJS.extend( open: function(event,ui){ ui.tooltip.removeClass("ui-tooltip"); ui.tooltip.addClass("calendar_uitooltip"); + }, + close: function( event, ui ) + { + ui.tooltip.hover( + function () { + if (this.scrollHeight > this.clientHeight) jQuery(this).stop(true).fadeTo(100, 1); + }, + function () { + jQuery(this).fadeOut("100", function(){ jQuery(this).remove();}); + } + ); } }); ttp.tooltip("enable");