diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-09-26 12:42:11 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-09-26 12:42:11 +0200 |
commit | 804dfcf6c4b5b6380d607c8ec6b843d56ac82247 (patch) | |
tree | cc81ecb76a5f1422100d521b9fe3b93166fcdf3e /views/default/event_calendar/region_select.php | |
parent | 6b20e80c9d577a3eeeb570a6d9fd706fe619709b (diff) | |
download | elgg-804dfcf6c4b5b6380d607c8ec6b843d56ac82247.tar.gz elgg-804dfcf6c4b5b6380d607c8ec6b843d56ac82247.tar.bz2 |
major changes for Elgg 1.8
Diffstat (limited to 'views/default/event_calendar/region_select.php')
-rw-r--r-- | views/default/event_calendar/region_select.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/views/default/event_calendar/region_select.php b/views/default/event_calendar/region_select.php index 81407b27d..a987171a2 100644 --- a/views/default/event_calendar/region_select.php +++ b/views/default/event_calendar/region_select.php @@ -1,6 +1,6 @@ <?php -$region_list = trim(get_plugin_setting('region_list', 'event_calendar')); +$region_list = trim(elgg_get_plugin_setting('region_list', 'event_calendar')); // make sure that we are using Unix line endings $region_list = str_replace("\r\n","\n",$region_list); $region_list = str_replace("\r","\n",$region_list); @@ -11,13 +11,11 @@ if ($region_list) { $region_item = trim($region_item); $options_values[$region_item] = $region_item; } - $js = "onchange=\"javascript:$('#event_list').load('".$vars['url_start'] - ."&callback=true®ion='+escape($('#region').val() ));\""; - //$js = "onchange=\"javascript:$('#event_list').load('".$vars['url_start']."&callback=true®ion='+$('#region').val());\""; + $body .= elgg_echo('event_calendar:region_filter_by_label'); - $body .= elgg_view("input/pulldown",array('internalid' => 'region','js'=>$js,'value'=>$vars['region'],'options_values'=>$options_values)); + $body .= elgg_view('input/hidden',array('id'=>'event-calendar-region-url-start','value'=>$vars['url_start'])); + $body .= elgg_view("input/dropdown",array('id' => 'event-calendar-region','value'=>$vars['region'],'options_values'=>$options_values)); $body .= '<br />'; } echo $body; -?>
\ No newline at end of file |