Revision f8e0e210
Added by Andreas Kohlbecker over 13 years ago
modules/cdm_dataportal/js/cdm_dynabox.js | ||
---|---|---|
12 | 12 |
Drupal.cdm_dynaboxAutoAttach = function () { |
13 | 13 |
|
14 | 14 |
$('.dynabox').find('.dynabox_content').hide().click(function(event){event.stopPropagation();}); |
15 |
$('.dynabox span.label').click( |
|
16 |
function () { |
|
15 |
$('.dynabox a.label').click( |
|
16 |
function (event) { |
|
17 |
event.preventDefault(); //Cancel the default action (navigation) of the click. |
|
17 | 18 |
var dynabox_content = $(this).toggleClass("dynabox_expanded").parent('.dynabox').find('.dynabox_content').slideToggle("fast"); |
18 | 19 |
|
19 | 20 |
var url = dynabox_content.attr('title'); |
... | ... | |
24 | 25 |
dynabox_content.find('.loading').remove().end().append(html); |
25 | 26 |
}); |
26 | 27 |
} |
27 |
|
|
28 | 28 |
}); |
29 | 29 |
//$('li.dynabox> span').click(function(event){event.stopPropagation();}); |
30 | 30 |
} |
Also available in: Unified diff
dynabox using anchor href