In the Commerce Kickstart distribution I have a facet search block which Display Widget is set to Min/Max UI Slider. But the slider is not shown. Please look a the pictures. How can I trace the problem?

The search works fine, it is just that the fancy slider is not shown.

capture 1

capture 2

CommentFileSizeAuthor
#2 2013-03-01_10-17-32.jpg74.07 KBchefnelone
WI7uY.jpg33.79 KBchefnelone
i4yJE.jpg32.32 KBchefnelone

Comments

Anonymous’s picture

Check your javascript with firebug or chrome debug. Any error before the slider may stop it from loading.

chefnelone’s picture

StatusFileSize
new74.07 KB

no errors in the console. Look my capture:
capture

3p’s picture

I have the same problem, but not in Commerce Kickstart.
Specific module or library is required to run widget.
tanks.

summit’s picture

Hi,
What specific module or library is required please?
I do not see my slider also...?

greetings, Martijn

summit’s picture

Hi, seeing my slider now, but only on search page, didn't now that that is only page it is shown!
Made issue for this; https://drupal.org/node/1734616
Greetings, Martijn

FreeAndEasy’s picture

The slider is only showing on the search page because thats the only place where the Slider Javascript files get included:

in search_api_ranges_preprocess_page():

drupal_add_library('system', 'ui.slider');
  drupal_add_js(drupal_get_path('module', 'search_api_ranges') . '/jquery.numeric.js');
  drupal_add_js(drupal_get_path('module', 'search_api_ranges') . '/search_api_ranges.js');

remove them there and put it in search_api_ranges_facetapi_widgets() instead to fix it:

function search_api_ranges_facetapi_widgets() {
drupal_add_library('system', 'ui.slider');
  drupal_add_js(drupal_get_path('module', 'search_api_ranges') . '/jquery.numeric.js');
  drupal_add_js(drupal_get_path('module', 'search_api_ranges') . '/search_api_ranges.js');

.....
Anonymous’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (duplicate)

This is now a duplicate of #1997260: JS is missing when cached via panels/ctools, please review the patch there.