Dotclear

source: plugins/userPref/js/index.js @ 4007:d08f9c5e38db

Revision 4007:d08f9c5e38db, 578 bytes checked in by franck <carnet.franck.paul@…>, 6 years ago (diff)

Responsive tables (not yet applied for plugins), thanks Adrian Roselli for code (js/css)  http://adrianroselli.com/2018/02/tables-css-display-properties-and-aria.html

Line 
1/*global $, dotclear */
2'use strict';
3
4$(function() {
5  $('#gp_submit,#lp_submit').hide();
6  $('#part-local,#part-global').tabload(function() {
7    $('.multi-part.active select.navigation option:first').attr('selected', true);
8  });
9  $('#gp_nav').change(function() {
10    window.location = $('#gp_nav option:selected').val();
11  });
12  $('#lp_nav').change(function() {
13    window.location = $('#lp_nav option:selected').val();
14  });
15  dotclear.responsiveCellHeaders(document.querySelector('table.prefs'), 'table.prefs', 0, true);
16  $('table.prefs').addClass('rch rch-thead');
17});
Note: See TracBrowser for help on using the repository browser.

Sites map