Created
February 4, 2016 19:51
-
-
Save morbidcamel101/16184b52ed4903311fdb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var queryParameters = {}, queryString = location.search.substring(1), re = /([^&=]+)=([^&]*)/g, m; | |
| while (m = re.exec(queryString)) { | |
| queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); | |
| } | |
| queryParameters['division'] = divisionId; | |
| location.search = $.param(queryParameters); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment