From 7e91c1559e9f3b0999c06bf423efc1849b939e00 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 15 Dec 2014 16:39:52 +0000 Subject: [PATCH] Add some special handling to deal with legacy calendar links in non-list favorites --- home/js/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/home/js/app.js b/home/js/app.js index 704eed9695..c6614f7b40 100644 --- a/home/js/app.js +++ b/home/js/app.js @@ -165,6 +165,16 @@ app.classes.home = AppJS.extend( et2.DOMContainer.id = et2.uniqueId; } } + + // Special handling to deal with legacy (non-et2) calendar links + if(name == 'home.legacy') + { + $j('.calendar_calDayColHeader a, .calendar_plannerDayScale a, .calendar_plannerWeekScale a, .calendar_plannerMonthScale a', et2.DOMContainer) + .on('click', function(e) { + egw.link_handler(this.href,'calendar'); + return false; + }); + } }, /**