Dotclear

source: plugins/blogroll/js/blogroll.js @ 3709:c88e69474c34

Revision 3709:c88e69474c34, 687 bytes checked in by franck <carnet.franck.paul@…>, 8 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     $('#links-list').sortable({'cursor':'move'});
6     $('#links-list tr').hover(function () {
7          $(this).css({'cursor':'move'});
8     }, function () {
9          $(this).css({'cursor':'auto'});
10     });
11     $('#links-form').submit(function() {
12          var order=[];
13          $('#links-list tr td input.position').each(function() {
14               order.push(this.name.replace(/^order\[([^\]]+)\]$/,'$1'));
15          });
16          $('input[name=links_order]')[0].value = order.join(',');
17          return true;
18     });
19     $('#links-list tr td input.position').hide();
20     $('#links-list tr td.handle').addClass('handler');
21     dotclear.condSubmit('#links-form td input[type="checkbox"]','#links-form #remove-action');
22});
Note: See TracBrowser for help on using the repository browser.

Sites map