diff options
author | cash <cash.costello@gmail.com> | 2013-03-10 17:52:38 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-03-10 17:52:38 -0400 |
commit | 42c52d51ea0e9047134441b31c8a9c7eac7922ef (patch) | |
tree | 485536dee4231ef3e9809109c3f5e20073e8c357 /js/lib | |
parent | e9f710c18089489c402cae23fbac71c0b7283824 (diff) | |
download | elgg-42c52d51ea0e9047134441b31c8a9c7eac7922ef.tar.gz elgg-42c52d51ea0e9047134441b31c8a9c7eac7922ef.tar.bz2 |
fixing line endings
Diffstat (limited to 'js/lib')
-rw-r--r-- | js/lib/ui.river.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/js/lib/ui.river.js b/js/lib/ui.river.js index a56a664a4..c103fabb3 100644 --- a/js/lib/ui.river.js +++ b/js/lib/ui.river.js @@ -1,14 +1,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.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);
\ No newline at end of file |