Dotclear

source: plugins/maintenance/js/settings.js @ 3709:c88e69474c34

Revision 3709:c88e69474c34, 846 bytes checked in by franck <carnet.franck.paul@…>, 7 years ago (diff)

use strict and no more linter warnings/errors as far as possible, switch from inline js to separate loaded file

Line 
1/*global $, dotclear */
2'use strict';
3
4$(function() {
5  $('.recall-for-all').attr('disabled', 'disabled');
6  $('#settings_recall_all').change(function() {
7    if ($(this).attr('selected') != 'selected') {
8      $('.recall-per-task').attr('disabled', 'disabled');
9      $('.recall-for-all').removeAttr('disabled');
10    }
11  });
12  $('#settings_recall_separate').change(function() {
13    if ($(this).attr('selected') != 'selected') {
14      $('.recall-per-task').removeAttr('disabled');
15      $('.recall-for-all').attr('disabled', 'disabled');
16    }
17  });
18  dotclear.condSubmit('#part-maintenance input[type="radio"]', '#part-maintenance input[type="submit"]');
19  dotclear.condSubmit('#part-backup input[type="radio"]', '#part-backup input[type="submit"]');
20  dotclear.condSubmit('#part-dev input[type="radio"]', '#part-dev input[type="submit"]');
21});
Note: See TracBrowser for help on using the repository browser.

Sites map