Total Complexity | 7 |
Complexity/F | 2.33 |
Lines of Code | 27 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | $(document).ready( function() { |
||
2 | // Hide the breadcrumb details, if no breadcrumb. |
||
3 | $('#edit-zen-breadcrumb').change( |
||
4 | function() { |
||
5 | div = $('#div-zen-breadcrumb-collapse'); |
||
|
|||
6 | if ($('#edit-zen-breadcrumb').val() == 'no') { |
||
7 | div.slideUp('slow'); |
||
8 | } else if (div.css('display') == 'none') { |
||
9 | div.slideDown('slow'); |
||
10 | } |
||
11 | } |
||
12 | ); |
||
13 | if ($('#edit-zen-breadcrumb').val() == 'no') { |
||
14 | $('#div-zen-breadcrumb-collapse').css('display', 'none'); |
||
15 | } |
||
16 | $('#edit-zen-breadcrumb-title').change( |
||
17 | function() { |
||
18 | checkbox = $('#edit-zen-breadcrumb-trailing'); |
||
19 | if ($('#edit-zen-breadcrumb-title').attr('checked')) { |
||
20 | checkbox.attr('disabled', 'disabled'); |
||
21 | } else { |
||
22 | checkbox.removeAttr('disabled'); |
||
23 | } |
||
24 | } |
||
25 | ); |
||
26 | $('#edit-zen-breadcrumb-title').change(); |
||
27 | } ); |
||
28 |