diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-07-22 13:44:47 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-07-22 13:44:47 +0200 |
commit | dae9634f5d74824e3179942b0bc62dd52d850085 (patch) | |
tree | 978272ea69e93cd42b25c580ca7562d7efb8742b | |
parent | 5d0b300bd5c7603a94abc7c53b4144b53b9dd89f (diff) | |
download | elgg-dae9634f5d74824e3179942b0bc62dd52d850085.tar.gz elgg-dae9634f5d74824e3179942b0bc62dd52d850085.tar.bz2 |
add button now honours selected date
-rw-r--r-- | models/model.php | 4 | ||||
-rw-r--r-- | views/default/event_calendar/full_calendar_view.php | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/models/model.php b/models/model.php index 7d0d06a3f..fb2cf44c2 100644 --- a/models/model.php +++ b/models/model.php @@ -1486,7 +1486,7 @@ function event_calendar_get_page_content_list($page_type,$container_guid,$start_ 'name' => 'add', 'href' => "event_calendar/add/".$container_guid, 'text' => elgg_echo('event_calendar:add'), - 'class' => 'elgg-button elgg-button-action', + 'class' => 'elgg-button elgg-button-action event-calendar-button-add', )); } } else { @@ -1497,7 +1497,7 @@ function event_calendar_get_page_content_list($page_type,$container_guid,$start_ 'name' => 'add', 'href' => "event_calendar/add", 'text' => elgg_echo('event_calendar:add'), - 'class' => 'elgg-button elgg-button-action', + 'class' => 'elgg-button elgg-button-action event-calendar-button-add', )); } } diff --git a/views/default/event_calendar/full_calendar_view.php b/views/default/event_calendar/full_calendar_view.php index 4316b5359..3e0c583ce 100644 --- a/views/default/event_calendar/full_calendar_view.php +++ b/views/default/event_calendar/full_calendar_view.php @@ -43,10 +43,12 @@ handleDayClick = function(date,allDay,jsEvent,view) { // deselect $('#event-calendar-selected-date').val(""); $('.elgg-menu-item-event-calendar-0add').find('a').attr('href',url+'event_calendar/add/'+group_guid); + $('.event-calendar-button-add').attr('href',url+'event_calendar/add/'+group_guid); $('.elgg-menu-item-event-calendar-1schedule').find('a').attr('href',url+'event_calendar/schedule/'+group_guid); } else { $('#event-calendar-selected-date').val(iso); $('.elgg-menu-item-event-calendar-0add').find('a').attr('href',url+'event_calendar/add/'+group_guid+'/'+iso); + $('.event-calendar-button-add').attr('href',url+'event_calendar/add/'+group_guid+'/'+iso); $('.elgg-menu-item-event-calendar-1schedule').find('a').attr('href',url+'event_calendar/schedule/'+group_guid+'/'+iso); $(this).addClass('event-calendar-date-selected'); |