Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from mozilla/bug-1074539-reload-on-redirect
bug 1066324 and bug 1074539 - bad page reload gives error
- Loading branch information
Showing
6 changed files
with
40 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* jQuery.deparam - The oposite of jQuery param. Creates an object of query string parameters. | ||
* | ||
* Credits for the idea and Regex: | ||
* http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/ | ||
*/ | ||
(function($){ | ||
$.deparam = $.deparam || function(uri){ | ||
if(uri === undefined){ | ||
uri = window.location.search; | ||
} | ||
var queryString = {}; | ||
uri.replace( | ||
new RegExp( | ||
"([^?=&]+)(=([^&#]*))?", "g"), | ||
function($0, $1, $2, $3) { queryString[$1] = $3; } | ||
); | ||
return queryString; | ||
}; | ||
})(jQuery); |