Users are redirected to the url they clicked login/signup from (#446)

This commit is contained in:
farhatahmad
2019-04-11 12:45:43 -04:00
committed by Jesus Federico
parent d39a11059e
commit a14007743f
4 changed files with 71 additions and 5 deletions

View File

@ -15,6 +15,11 @@
// with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
$(document).on('turbolinks:load', function(){
// Stores the current url when the user clicks the sign in button
$(".sign-in-button").click(function(){
document.cookie ="return_to=" + window.location.href
})
// Checks to see if the user provided an image url and displays it if they did
$("#user-image")
.on("load", function() {