Dotclear

source: plugins/pings/post.js @ 1606:6e2d8e9dd7d7

Revision 1606:6e2d8e9dd7d7, 526 bytes checked in by Nicolas <nikrou77@…>, 11 years ago (diff)

Fix issue #1513 : label can be clicked, like arrow
Update tests

Line 
1$(function() {
2     $('#edit-entry').onetabload(function() {
3          if ($('p.ping-services').length > 0) {
4               p = $('<p></p>');
5               p.addClass('ping-services');
6               a = $('<a href="#"></a>');
7               a.text(dotclear.msg.check_all);
8               a.click(function() {
9                    $('p.ping-services input[type="checkbox"]').attr('checked','checked');
10                    return false;
11               });
12               $('p.ping-services:last').after(p.append(a));
13          }
14          $('h5.ping-services').toggleWithLegend($('p.ping-services'),{
15               cookie: 'dcx_ping_services',
16               legend_click: true
17          });
18     });
19});
Note: See TracBrowser for help on using the repository browser.

Sites map