From 471a4c609d72dd95c99b592ec40c624290e942d2 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 30 Aug 2012 02:04:03 +0200 Subject: Replaced javascript alert by elgg popup in ical button. --- views/default/js/event_calendar/event_calendar.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'views/default/js/event_calendar') diff --git a/views/default/js/event_calendar/event_calendar.php b/views/default/js/event_calendar/event_calendar.php index 65c4d2952..6150feb79 100644 --- a/views/default/js/event_calendar/event_calendar.php +++ b/views/default/js/event_calendar/event_calendar.php @@ -96,9 +96,8 @@ elgg.event_calendar.handleRegionChange = function(e) { } elgg.event_calendar.handleIcalPopup = function(e) { - var message = elgg.echo('event_calendar:ical_popup_message')+"\n"+this.href; - alert(message); - return false; + this.href = '#event-calendar-ical'; + e.preventDefault(); } elgg.event_calendar.handlePagedPersonalCalendarToggle = function() { -- cgit v1.2.3