Dotclear

source: admin/js/_auth.js @ 3725:b47f38c701ee

Revision 3725:b47f38c701ee, 671 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Use specialized input fields (color, email, url, number, …) where is relevant

Line 
1/*global $ */
2'use strict';
3
4$(window).load(function() {
5  var uid = $('input[name=user_id]');
6  var upw = $('input[name=user_pwd]');
7  uid.focus();
8
9  if (upw.length == 0) {
10    return;
11  }
12
13  uid.keypress(processKey);
14
15  function processKey(evt) {
16    if (evt.which == 13 && upw.val() == '') {
17      upw.focus();
18      return false;
19    }
20    return true;
21  }
22  $.cookie('dc_admin_test_cookie', true);
23  if ($.cookie('dc_admin_test_cookie')) {
24    $('#cookie_help').hide();
25    $.cookie('dc_admin_test_cookie', '', {
26      'expires': -1
27    });
28  } else {
29    $('#cookie_help').show();
30  }
31  $('#issue #more').toggleWithLegend($('#issue').children().not('#more'));
32});
Note: See TracBrowser for help on using the repository browser.

Sites map