aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-30 02:04:03 +0200
committerSem <sembrestels@riseup.net>2012-08-30 02:04:03 +0200
commit471a4c609d72dd95c99b592ec40c624290e942d2 (patch)
treec9b4008225f8cbf85af8bca18ab158df7c796e34 /views
parent3d72bfc22b8a538da08a0f0919fb9799bdc975ec (diff)
downloadelgg-471a4c609d72dd95c99b592ec40c624290e942d2.tar.gz
elgg-471a4c609d72dd95c99b592ec40c624290e942d2.tar.bz2
Replaced javascript alert by elgg popup in ical button.
Diffstat (limited to 'views')
-rw-r--r--views/default/event_calendar/css.php4
-rw-r--r--views/default/js/event_calendar/event_calendar.php5
2 files changed, 6 insertions, 3 deletions
diff --git a/views/default/event_calendar/css.php b/views/default/event_calendar/css.php
index c1dbf4633..9ef2ecfa1 100644
--- a/views/default/event_calendar/css.php
+++ b/views/default/event_calendar/css.php
@@ -38,6 +38,10 @@ ul#calendarmenu li a:hover, ul#calendarmenu li.sys_selected a{
background: <?php echo $highlight_colour; ?>;
}
+.event-calendar-ical {
+ width: 200px;
+}
+
td.ui-datepicker-unselectable {
background-color: #FFFFFF !important;
color: #888888 !important;
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() {