Commit a50d3717 authored by Yuri Konotopov's avatar Yuri Konotopov

registration: prevent registration button double click

parent 018a4d4e
{% extends "base.html" %}
{% block body %}
<div class="col-sm-8 col-md-6 col-centered">
<form action="" method="POST" class="form" id="auth_form">
<form action="" method="POST" class="form auth_form">
<h3>User Login</h3>
<input type="hidden" name="next" value="{{ next }}">
{% csrf_token %}
......
{% extends "base.html" %}
{% block body %}
<div class="col-sm-8 col-md-6 col-centered">
<form action="" method="POST" id="auth_form">
<form action="" method="POST" class="auth_form">
{% csrf_token %}
<h3>Change your password</h3>
<ul>
......
......@@ -2,7 +2,7 @@
{% block body %}
{% if validlink %}
<div class="col-sm-8 col-md-6 col-centered">
<form action="" method="POST" id="auth_form">
<form action="" method="POST" class="auth_form">
{% csrf_token %}
<h3>Password reset</h3>
<ul>
......
{% extends "base.html" %}
{% block body %}
<div class="col-sm-8 col-md-6 col-centered">
<form action="" method="POST" id="auth_form">
<form action="" method="POST" class="auth_form">
{% csrf_token %}
<h3>Password reset</h3>
<p>Forgotten your password? Enter your e-mail address below, and we’ll e-mail instructions for setting a new one.</p>
......
{% extends "base.html" %}
{% block body %}
<div class="col-sm-8 col-md-6 col-centered">
<form action="" method="POST" id="auth_form">
<form action="" method="POST" class="auth_form" id='registration'>
{% csrf_token %}
<h3>Account Registration</h3>
<ul>
......
......@@ -40,45 +40,45 @@ div.navbar-header a.unreviewed_counter:hover {
/* Login Area */
/* ==================================================================== */
#auth_form {
.auth_form {
padding: 0;
margin: 0;
}
#auth_form h3 {
.auth_form h3 {
color: #0489B7;
}
#auth_form li, #auth_form ol {
.auth_form li, .auth_form ol {
list-style-type: none;
}
#auth_form ul {
.auth_form ul {
padding: 0px;
}
#auth_form ul > li {
.auth_form ul > li {
margin-bottom: 15px;
}
#auth_form .helptext {
.auth_form .helptext {
display: block;
}
#auth_form label {
.auth_form label {
display: inline-block;
line-height: 1.8;
vertical-align: top;
}
#auth_form input {
.auth_form input {
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
}
#auth_form input:focus {
.auth_form input:focus {
border-color: #66afe9;
outline: 0;
}
......
......@@ -51,6 +51,12 @@ function($, messages, modal, hashParamUtils, templates, staticfiles, cookie) {
return false;
});
// Prevent double click on registration button
$('form#registration').on('submit', function(event) {
$("form#registration button[type='submit']").prop('disabled', true);
return true;
});
// Add lightbox for screenshots
$('div.extension-details').on('click', 'div.screenshot > a', function(event) {
event.preventDefault();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment