move javascript a little

This commit is contained in:
wvengen 2013-12-23 11:50:57 +01:00
parent 45ad8e6524
commit 5d8f71f834
1 changed files with 9 additions and 9 deletions

View File

@ -35,15 +35,6 @@ $.fn.extend({
// Load following statements, when DOM is ready
$(function() {
// 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.
// This is only implemented for passwords.
$('input[type="password"][autocomplete="off"][data-store="on"]').each(function() {
$(this).on('change', function() {
$(this).removeAttr('autocomplete');
});
});
// Show/Hide a specific DOM element
$(document).on('click', 'a[data-toggle-this]', function() {
@ -130,6 +121,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});