Dotclear

source: admin/js/_auth.js @ 3851:21fc9983c334

Revision 3851:21fc9983c334, 639 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

Allow folding of blog (standard) parameters (+es6)

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

Sites map