diff --git contrib/views_slideshow_cycle/views_slideshow_cycle.module contrib/views_slideshow_cycle/views_slideshow_cycle.module index f3b692c..aec02c0 100644 --- contrib/views_slideshow_cycle/views_slideshow_cycle.module +++ contrib/views_slideshow_cycle/views_slideshow_cycle.module @@ -27,8 +27,8 @@ function views_slideshow_cycle_init() { drupal_add_js($module_path . '/js/jquery.cycle.all.min.js'); } - if (file_exists($module_path . '/js/json2.js')) { - drupal_add_js($module_path . '/js/json2.js'); + if (file_exists($module_path . '/js/json2/json2.js')) { + drupal_add_js($module_path . '/js/json2/json2.js'); } drupal_add_js($module_path . '/js/views_slideshow_cycle.js'); diff --git contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc index 412b708..60f6590 100644 --- contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc +++ contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc @@ -318,9 +318,9 @@ function views_slideshow_cycle_views_slideshow_slideshow_type_form(&$form, &$for '#markup' => '

' . t('jQuery Cycle Custom Options') . '

', ); - if (!file_exists(drupal_get_path('module', 'views_slideshow_cycle') . '/js/json2.js')) { + if (!file_exists(drupal_get_path('module', 'views_slideshow_cycle') . '/js/json2/json2.js')) { $form['views_slideshow_cycle']['no_json_js'] = array( - '#markup' => '
' . t('To use the advanced options you need to download json2.js. You can do this by clicking the download button at !url and extract json2.js to views_slideshow/contrib/views_slideshow_cycle/js', array('!url' => l('https://github.com/douglascrockford/JSON-js', 'https://github.com/douglascrockford/JSON-js', array('attributes' => array('target' => '_blank'))))) . '
', + '#markup' => '
' . t('To use the advanced options you need to download json2.js. You can do this by clicking the download button at !url and extract json2.js to views_slideshow/contrib/views_slideshow_cycle/js/json2', array('!url' => l('https://github.com/douglascrockford/JSON-js', 'https://github.com/douglascrockford/JSON-js', array('attributes' => array('target' => '_blank'))))) . '
', ); } else {