Merge remote-tracking branch 'foodcoops/master' into feature-receive

This commit is contained in:
wvengen 2014-01-02 18:57:59 +01:00
commit 27a73be68f
16 changed files with 87 additions and 32 deletions

View file

@ -126,6 +126,15 @@ $(function() {
$(this).children('input[type="submit"]').attr('disabled', 'disabled');
});
// The autocomplete attribute is used for both autocompletion and storing
// for passwords, it's nice to store it when editing one's own profile,
// but never autocomplete. Only implemented for passwords.
$('input[type="password"][autocomplete="off"][data-store="on"]').each(function() {
$(this).on('change', function() {
$(this).removeAttr('autocomplete');
});
});
// Use bootstrap datepicker for dateinput
$('.datepicker').datepicker({format: 'yyyy-mm-dd', language: I18n.locale});