login: do not disable login button

It may be filled automatically by the browser and a change() event would
not be fired in this case.
This commit is contained in:
Frédéric Péters 2012-12-28 10:14:24 +01:00
parent 17e36a3705
commit f68f1373c0
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ function select_add_dialog(opts, $form, form_action)
/* Form buttons with the '.enable-on-change' class are only enabled if an
* input or a select of the form is modified. */
$('form button.enable-on-change, form input[type="submit"]', base).prop('disabled', 'true');
$('form button.enable-on-change, form input[type="submit"]:not(".login")', base).prop('disabled', 'true');
$('form input, form select, form textarea', base).on('change', function () {
var form = $(this).closest('form');
$('button.enable-on-change, form input[type="submit"]', form).enable();

View File

@ -33,7 +33,7 @@
{{ form.password }}
</p>
<input type="submit" value="Se connecter" class="submit" />
<input type="submit" value="Se connecter" class="submit login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>