| 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 |
};
|