ui.river.js 360 B

1234567891011121314
  1. elgg.provide('elgg.ui.river');
  2. elgg.ui.river.init = function() {
  3. $('#elgg-river-selector').change(function() {
  4. var url = window.location.href;
  5. if (window.location.search.length) {
  6. url = url.substring(0, url.indexOf('?'));
  7. }
  8. url += '?' + $(this).val();
  9. elgg.forward(url);
  10. });
  11. };
  12. elgg.register_hook_handler('init', 'system', elgg.ui.river.init);