Revision 8d0c3f5f
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
33 | 33 |
module_load_include('inc', 'cdm_dataportal', 'includes/media'); |
34 | 34 |
module_load_include('inc', 'cdm_dataportal', 'includes/maps'); |
35 | 35 |
module_load_include('inc', 'cdm_dataportal', 'includes/occurrences'); |
36 |
module_load_include('inc', 'cdm_dataportal', 'includes/occurrences_new'); // tmp file, shoud be merged later with occurrences.inc |
|
36 | 37 |
module_load_include('inc', 'cdm_dataportal', 'includes/descriptions'); |
37 | 38 |
module_load_include('inc', 'cdm_dataportal', 'includes/pre-drupal8'); |
38 | 39 |
|
... | ... | |
325 | 326 |
); |
326 | 327 |
} |
327 | 328 |
|
328 |
function _add_js_ui_accordion(){
|
|
329 |
_add_jquery_ui();
|
|
330 |
drupal_add_js('jQuery(document).ready(function() {
|
|
331 |
jQuery( "#accordion" ).accordion();
|
|
332 |
});',
|
|
333 |
array('type' => 'inline')
|
|
334 |
);
|
|
335 |
}
|
|
329 |
function _add_js_ui_accordion(){ |
|
330 |
_add_jquery_ui(); |
|
331 |
drupal_add_js('jQuery(document).ready(function() { |
|
332 |
jQuery( "#accordion" ).accordion(); |
|
333 |
});', |
|
334 |
array('type' => 'inline') |
|
335 |
); |
|
336 |
} |
|
336 | 337 |
|
337 | 338 |
|
338 | 339 |
function _add_js_utis_client($jquery_selector){ |
... | ... | |
438 | 439 |
); |
439 | 440 |
} |
440 | 441 |
|
442 |
function _add_js_derivation_tree($jquery_selector){ |
|
443 |
drupal_add_js(drupal_get_path('module','cdm_dataportal') . '/js/derivation-tree.js'); |
|
444 |
drupal_add_js('jQuery(document).ready(function() { |
|
445 |
jQuery( "' . $jquery_selector . '" ).derivationTree(); |
|
446 |
});', |
|
447 |
array('type' => 'inline') |
|
448 |
); |
|
449 |
} |
|
450 |
|
|
441 | 451 |
/** |
442 | 452 |
* Provides the markup for an font awesome icon. |
443 | 453 |
* |
Also available in: Unified diff
ref #7599 derivative tree view: unit details collapsible