]> git.openstreetmap.org Git - rails.git/blob - app/assets/javascripts/auth_providers.js
Merge remote-tracking branch 'upstream/pull/5273'
[rails.git] / app / assets / javascripts / auth_providers.js
1 //= require qs/dist/qs
2
3 $(document).ready(function () {
4   // Attach referer to authentication buttons
5   $(".auth_button").each(function () {
6     var params = Qs.parse(this.search.substring(1));
7     params.referer = $("#referer").val();
8     this.search = Qs.stringify(params);
9   });
10 });