Dotclear

source: admin/js/_plugins.js @ 2354:d388f7fdcb4e

Revision 2354:d388f7fdcb4e, 628 bytes checked in by Denis Jean-Chirstian <contact@…>, 12 years ago (diff)

Move addtionnal info on plugins list from js to php, addresses #1771

Line 
1$(function() {
2     // expand a module line
3     $('table.modules.expandable tr.line').each(function(){
4          $('td.module-name',this).toggleWithLegend($(this).next('.module-more'),{
5               img_on_src: dotclear.img_plus_src,
6               img_on_alt: dotclear.img_plus_alt,
7               img_off_src: dotclear.img_minus_src,
8               img_off_alt: dotclear.img_minus_alt,
9               legend_click: true
10          });
11     });
12
13     // confirm module deletion
14     $('td.module-actions form input[type=submit][name=delete]').click(function() {
15          var module_id = $('input[name=module]',$(this).parent()).val();
16          return window.confirm(dotclear.msg.confirm_delete_plugin.replace('%s',module_id));
17     });
18});
Note: See TracBrowser for help on using the repository browser.

Sites map