/[drupal]/contributions/modules/fivestarextra/fivestarextra-admin.js
ViewVC logotype

Contents of /contributions/modules/fivestarextra/fivestarextra-admin.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Oct 27 12:34:28 2008 UTC (13 months ago) by likeless
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA3, DRUPAL-6--1-1, HEAD
File MIME type: text/javascript
#326507 by Likeless: Added prototype node type filtering for comment rating.
1 // $Id$
2
3 /**
4 * Fivestarextra admin interface enhancments.
5 */
6 if (Drupal.jsEnabled) {
7 $(document).ready(function() {
8
9 function fivestarextra_noderestrict_nodetypes() {
10 if ($('#edit-fivestar-noderestrict-enable').attr('checked')) {
11 $('div.fivestarextra_noderestrict_nodetypes input').
12 attr('disabled', false);
13 }
14 else {
15 $('div.fivestarextra_noderestrict_nodetypes input').
16 attr('disabled', 'disabled');
17 }
18 }
19
20 $('#edit-fivestar-noderestrict-enable')
21 .change( fivestarextra_noderestrict_nodetypes );
22
23 fivestarextra_noderestrict_nodetypes();
24
25 });
26 };

  ViewVC Help
Powered by ViewVC 1.1.2