From 195ccbda9e5c79df8a2c14d030028fe757f74d77 Mon Sep 17 00:00:00 2001 From: bMancone Date: Mon, 30 Apr 2012 09:08:21 +0000 Subject: [PATCH] // Fixed #PSCFV-1559 and changed default values of bxSlider --- modules/homeslider/homeslider.php | 4 ++-- modules/homeslider/homeslider.tpl | 16 ++++++++-------- modules/homeslider/js/homeslider.js | 15 +++++++-------- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/modules/homeslider/homeslider.php b/modules/homeslider/homeslider.php index 5a17658d4..e087f491c 100644 --- a/modules/homeslider/homeslider.php +++ b/modules/homeslider/homeslider.php @@ -65,8 +65,8 @@ class HomeSlider extends Module /* Sets up configuration */ $res = Configuration::updateValue('HOMESLIDER_WIDTH', '535'); $res &= Configuration::updateValue('HOMESLIDER_HEIGHT', '300'); - $res &= Configuration::updateValue('HOMESLIDER_SPEED', '1300'); - $res &= Configuration::updateValue('HOMESLIDER_PAUSE', '7700'); + $res &= Configuration::updateValue('HOMESLIDER_SPEED', '500'); + $res &= Configuration::updateValue('HOMESLIDER_PAUSE', '3000'); $res &= Configuration::updateValue('HOMESLIDER_LOOP', '1'); /* Creates tables */ $res &= $this->createTables(); diff --git a/modules/homeslider/homeslider.tpl b/modules/homeslider/homeslider.tpl index 33d7db553..4ddd65073 100644 --- a/modules/homeslider/homeslider.tpl +++ b/modules/homeslider/homeslider.tpl @@ -24,20 +24,20 @@ * International Registered Trademark & Property of PrestaShop SA *} - + {if isset($homeslider)} {/if} {if isset($homeslider_slides)} diff --git a/modules/homeslider/js/homeslider.js b/modules/homeslider/js/homeslider.js index af951dcbd..d038afca0 100644 --- a/modules/homeslider/js/homeslider.js +++ b/modules/homeslider/js/homeslider.js @@ -25,15 +25,14 @@ */ $(function(){ - - if (!homeslider_speed == undefined) - var homeslider_speed = 300; - if (!homeslider_pause == undefined) - var homeslider_pause = 6000; - - if (typeof(homeslider_loop) == 'undefined') + + if (typeof(homeslider_speed) == 'undefined') + homeslider_speed = 500; + if (typeof(homeslider_pause) == 'undefined') + homeslider_pause = 3000; + if (typeof(homeslider_loop) == 'undefined') homeslider_loop = true; - + $('#homeslider').bxSlider({ infiniteLoop: homeslider_loop, hideControlOnEnd: true,