<?php
function mkdruding2_preprocess_page(&$vars, $hook) {
//wouold be nice to include this only during search hook
- drupal_add_js(drupal_get_path('theme', 'mkdruding2') . '/mkdruding2.js');
+ drupal_add_js(drupal_get_path('theme', 'mkdruding1') . '/mkdruding1.js');
+ // in ding1 we draw facets to our tab, we could set up the facet container
+ // in /mkdru-results.tpl.php. However, I still do it client side in
+ // the "mkdruFacetContainer" JS theme function to get hold of facet config
+ // this signals that client side container generation should be used
+ drupal_add_js(array('mkdru' => array('facetContainerSelector' =>
+ '#mkdru-raw-facet-container')), 'setting');
}