diff options
author | Evan Winslow <evan@elgg.org> | 2012-03-04 20:43:05 -0800 |
---|---|---|
committer | Evan Winslow <evan@elgg.org> | 2012-03-04 20:43:05 -0800 |
commit | e5e7238d0f83789217950441aefb4c70e47eac1c (patch) | |
tree | 4a7c20363b5e2fab3273b062d2cbfaf17a43760f /views/default | |
parent | db0bb2d9c0d2835b95caf887a6ef3bfb818df047 (diff) | |
download | elgg-e5e7238d0f83789217950441aefb4c70e47eac1c.tar.gz elgg-e5e7238d0f83789217950441aefb4c70e47eac1c.tar.bz2 |
Pulls river js out into external file
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/core/river/filter.php | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/views/default/core/river/filter.php b/views/default/core/river/filter.php index 87380b561..9b7fadaa8 100644 --- a/views/default/core/river/filter.php +++ b/views/default/core/river/filter.php @@ -34,17 +34,5 @@ if ($selector) { $params['value'] = $selector; } echo elgg_view('input/dropdown', $params); -?> -<?php //@todo JS 1.8: no ?> -<script type="text/javascript"> -elgg.register_hook_handler('init', 'system', function() { - $('#elgg-river-selector').change(function() { - var url = window.location.href; - if (window.location.search.length) { - url = url.substring(0, url.indexOf('?')); - } - url += '?' + $(this).val(); - elgg.forward(url); - }); -}); -</script> + +elgg_load_js('elgg.ui.river'); |