Elgg  Version 1.9
ui.river.js
Go to the documentation of this file.
1 elgg.provide('elgg.ui.river');
2 
3 elgg.ui.river.init = function() {
4  $('#elgg-river-selector').change(function() {
5  var url = window.location.href;
6  if (window.location.search.length) {
7  url = url.substring(0, url.indexOf('?'));
8  }
9  url += '?' + $(this).val();
10  elgg.forward(url);
11  });
12 };
13 
14 elgg.register_hook_handler('init', 'system', elgg.ui.river.init);
elgg
Definition: install.js:23
$CONFIG url
The full URL where Elgg is installed.
Definition: config.php:94