forked from openstreetmap/openstreetmap-website
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/pull/4455'
- Loading branch information
Showing
20 changed files
with
850 additions
and
670 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//= require qs/dist/qs | ||
|
||
$(document).ready(function () { | ||
// Attach referer to authentication buttons | ||
$(".auth_button").each(function () { | ||
var params = Qs.parse(this.search.substring(1)); | ||
params.referer = $("#referer").val(); | ||
this.search = Qs.stringify(params); | ||
}); | ||
|
||
// Add click handler to show OpenID field | ||
$("#openid_open_url").click(function (e) { | ||
e.preventDefault(); | ||
$("#openid_url").val("http://"); | ||
$("#login_auth_buttons").hide().removeClass("d-flex"); | ||
$("#login_openid_url").show(); | ||
$("#openid_login_button").show(); | ||
}); | ||
|
||
// Hide OpenID field for now | ||
$("#login_openid_url").hide(); | ||
$("#openid_login_button").hide(); | ||
}); |
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 |
---|---|---|
@@ -1,28 +1,6 @@ | ||
//= qs/dist/qs | ||
|
||
$(document).ready(function () { | ||
// Preserve location hash in referer | ||
if (window.location.hash) { | ||
$("#referer").val($("#referer").val() + window.location.hash); | ||
} | ||
|
||
// Attach referer to authentication buttons | ||
$(".auth_button").each(function () { | ||
var params = Qs.parse(this.search.substring(1)); | ||
params.referer = $("#referer").val(); | ||
this.search = Qs.stringify(params); | ||
}); | ||
|
||
// Add click handler to show OpenID field | ||
$("#openid_open_url").click(function (e) { | ||
e.preventDefault(); | ||
$("#openid_url").val("http://"); | ||
$("#login_auth_buttons").hide(); | ||
$("#login_openid_url").show(); | ||
$("#login_openid_submit").show(); | ||
}); | ||
|
||
// Hide OpenID field for now | ||
$("#login_openid_url").hide(); | ||
$("#login_openid_submit").hide(); | ||
}); |
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 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
Oops, something went wrong.