/[drupal]/contributions/themes/ad_redoable/theme-settings.js
ViewVC logotype

Contents of /contributions/themes/ad_redoable/theme-settings.js

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


Revision 1.3 - (show annotations) (download) (as text)
Wed Jul 2 15:54:38 2008 UTC (16 months, 3 weeks ago) by avioso
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
Changes since 1.2: +0 -0 lines
File MIME type: text/javascript
Adding Drupal 6 dev Area
1 $(document).ready( function() {
2 // Hide the breadcrumb details, if no breadcrumb.
3 $('#edit-ad_redoable-breadcrumb').change(
4 function() {
5 div = $('#div-ad_redoable-breadcrumb-collapse');
6 if ($('#edit-ad_redoable-breadcrumb').val() == 'no') {
7 div.slideUp('slow');
8 } else if (div.css('display') == 'none') {
9 div.slideDown('slow');
10 }
11 }
12 );
13 if ($('#edit-ad_redoable-breadcrumb').val() == 'no') {
14 $('#div-ad_redoable-breadcrumb-collapse').css('display', 'none');
15 }
16 $('#edit-ad_redoable-breadcrumb-title').change(
17 function() {
18 checkbox = $('#edit-ad_redoable-breadcrumb-trailing');
19 if ($('#edit-ad_redoable-breadcrumb-title').attr('checked')) {
20 checkbox.attr('disabled', 'disabled');
21 } else {
22 checkbox.removeAttr('disabled');
23 }
24 }
25 );
26 $('#edit-ad_redoable-breadcrumb-title').change();
27 } );

  ViewVC Help
Powered by ViewVC 1.1.2