Project

General

Profile

« Previous | Next » 

Revision b0adfd32

Added by Andreas Kohlbecker almost 8 years ago

#5790 classification breadcrumb children implemented

View differences:

modules/cdm_dataportal/cdm_dataportal.module
285 285
 * @see http://drupal.org/node/1354
286 286
 */
287 287
function _add_js_taxonomic_children($jquery_selector) {
288
  drupal_add_js(drupal_get_path('module', 'cdm_dataportal') . '/js/taxonomic_children.js');
288

  
289
  global $base_url;
290

  
291

  
292
  drupal_add_js(drupal_get_path('module', 'cdm_dataportal') . '/js/jquery.cdm.taxonomic_children.js');
293
  _add_js_lib_scrollTo();
289 294

  
290 295
  drupal_add_js('jQuery(document).ready(function() {
291
        jQuery(\'' . $jquery_selector . '\').taxonomic_children();
296
        jQuery(\'' . $jquery_selector . '\').taxonomic_children({
297
          hoverClass: "fa-rotate-90",
298
          activeClass: "fa-rotate-90",
299
          classificationUuid: "' . get_current_classification_uuid() . '",
300
          cdmwebappBaseUri: "' . variable_get('cdm_webservice_url', '') . '",
301
          proxyBaseUri: "' . $base_url . '",
302
          
303
        });
292 304
      });
293 305
      ', array('type' => 'inline'));
294 306
}
......
302 314
    drupal_add_js(drupal_get_path('module', 'cdm_dataportal') . '/js/domEvent.js');
303 315
  }
304 316

  
317
  function _add_js_lib_scrollTo() {
318
    drupal_add_js(drupal_get_path('module', 'cdm_dataportal') . '/js/jquery.scrollTo-1.4.3.1'
319
      . (variable_get('cdm_js_devel_mode', FALSE) ? '-min' : '') . '.js');
320
  }
321

  
305 322
  function _add_jquery_ui()
306 323
  {
307 324
    drupal_add_css(drupal_get_path('module',

Also available in: Unified diff