aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-06-02 08:41:27 -0700
committerCash Costello <cash.costello@gmail.com>2012-06-02 08:41:27 -0700
commit28f57861f86f3832150d57e583facc8552ce57eb (patch)
tree9ea0f467d72c2a5a802fabf7c969dcfb346429fd /views/default
parentd06b10d5f084aceecdd302036697212a8d8d08e5 (diff)
parente5e7238d0f83789217950441aefb4c70e47eac1c (diff)
downloadelgg-28f57861f86f3832150d57e583facc8552ce57eb.tar.gz
elgg-28f57861f86f3832150d57e583facc8552ce57eb.tar.bz2
Merge pull request #172 from ewinslow/river-externalize-js
Externalizes river JS
Diffstat (limited to 'views/default')
-rw-r--r--views/default/core/river/filter.php16
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');