Skip to content

Commit

Permalink
[-] FO : Fix bug #PSCSX-1717, active
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Apr 14, 2014
1 parent 322b6f1 commit c92802a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
28 changes: 28 additions & 0 deletions themes/default-bootstrap/js/index.js
@@ -0,0 +1,28 @@
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/

$(document).ready(function(){
$('#home-page-tabs li:first').addClass('active');
});
3 changes: 1 addition & 2 deletions themes/default-bootstrap/modules/blockbestsellers/tab.tpl
Expand Up @@ -22,5 +22,4 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{counter name=active_li assign=active_li}
<li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers">{l s='Best Sellers' mod='blockbestsellers'}</a></li>
<li><a data-toggle="tab" href="#blockbestsellers" class="blockbestsellers">{l s='Best Sellers' mod='blockbestsellers'}</a></li>
3 changes: 1 addition & 2 deletions themes/default-bootstrap/modules/blocknewproducts/tab.tpl
Expand Up @@ -22,5 +22,4 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{counter name=active_li assign=active_li}
<li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li>
<li><a data-toggle="tab" href="#blocknewproducts" class="blocknewproducts">{l s='New arrivals' mod='blocknewproducts'}</a></li>
3 changes: 1 addition & 2 deletions themes/default-bootstrap/modules/homefeatured/tab.tpl
Expand Up @@ -22,5 +22,4 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{counter name=active_li assign=active_li}
<li{if $active_li == 1} class="active"{/if}><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li>
<li><a data-toggle="tab" href="#homefeatured" class="homefeatured">{l s='Popular' mod='homefeatured'}</a></li>

0 comments on commit c92802a

Please sign in to comment.