aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2011-09-27 14:31:35 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2011-09-27 14:31:35 +0200
commit665a96fb82314b1836a4dcedc1e52b25c202a25b (patch)
treede0c770f28208750e143d3d964d680ed6dfedc5c /views
parent70c10a5b5989cff21d83566bf11b3911f5c85297 (diff)
downloadelgg-665a96fb82314b1836a4dcedc1e52b25c202a25b.tar.gz
elgg-665a96fb82314b1836a4dcedc1e52b25c202a25b.tar.bz2
added event-calendar-filter-period-PERIOD class to datepicker wrapper div
Diffstat (limited to 'views')
-rw-r--r--views/default/input/datepicker_inline.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/views/default/input/datepicker_inline.php b/views/default/input/datepicker_inline.php
index 69520b9ef..bcb7c85f5 100644
--- a/views/default/input/datepicker_inline.php
+++ b/views/default/input/datepicker_inline.php
@@ -21,6 +21,12 @@ if ($vars['mode'] == 'week') {
} else {
$selected_week = '';
}
+
+if ($vars['mode']) {
+ $wrapper_class = "event-calendar-filter-period-".$vars['mode'];
+} else {
+ $wrapper_class = "event-calendar-filter-period-month";
+}
// TODO - figure out how to move this JavaScript
?>
@@ -74,5 +80,5 @@ var done_loading = true;
});
</script>
-<div style="position:relative;" id="<?php echo $vars['name']; ?>" ></div>
+<div style="position:relative;" id="<?php echo $vars['name']; ?>" class="<?php echo $wrapper_class; ?>" ></div>
<p style="clear: both;"><!-- See day-by-day example for highlighting days code --></p> \ No newline at end of file