blob: a56a664a41674ce489ce99c8f4eed79703bf1e37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
elgg.provide('elgg.ui.river');
elgg.ui.river.init = 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);
});
};
elgg.register_hook_handler('init', 'system', elgg.ui.river.init);
|