first commit
This commit is contained in:
59
modules/blockgrouptop/views/js/blockgrouptop.js
Normal file
59
modules/blockgrouptop/views/js/blockgrouptop.js
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* @copyright Commercial License By LeoTheme.Com
|
||||
* @email leotheme.com
|
||||
* @visit http://www.leotheme.com
|
||||
*/
|
||||
$(document).ready(function() {
|
||||
if (typeof enable_js_lang != 'undefined')
|
||||
{
|
||||
|
||||
$('ul#first-currencies li:not(.selected)').css('opacity', 0.3);
|
||||
$('ul#first-currencies li:not(.selected)').hover(function(){
|
||||
$(this).css('opacity', 1);
|
||||
}, function(){
|
||||
$(this).css('opacity', 0.3);
|
||||
});
|
||||
}
|
||||
|
||||
if (typeof enable_js_currency != 'undefined')
|
||||
{
|
||||
|
||||
$("#setCurrency").mouseover(function(){
|
||||
$(this).addClass("countries_hover");
|
||||
$(".currencies_ul").addClass("currencies_ul_hover");
|
||||
});
|
||||
$("#setCurrency").mouseout(function(){
|
||||
$(this).removeClass("countries_hover");
|
||||
$(".currencies_ul").removeClass("currencies_ul_hover");
|
||||
});
|
||||
}
|
||||
|
||||
if (typeof js_country != 'undefined')
|
||||
{
|
||||
|
||||
$("#countries").mouseover(function(){
|
||||
$(this).addClass("countries_hover");
|
||||
$(".countries_ul").addClass("countries_ul_hover");
|
||||
});
|
||||
$("#countries").mouseout(function(){
|
||||
$(this).removeClass("countries_hover");
|
||||
$(".countries_ul").removeClass("countries_ul_hover");
|
||||
});
|
||||
}
|
||||
})
|
||||
|
||||
function setCurrency(id_currency)
|
||||
{
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
headers: { "cache-control": "no-cache" },
|
||||
url: prestashop['urls']['base_url'] + 'index.php' + '?rand=' + new Date().getTime(),
|
||||
data: 'controller=change-currency&id_currency='+ parseInt(id_currency),
|
||||
success: function(msg)
|
||||
{
|
||||
location.reload(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
35
modules/blockgrouptop/views/js/index.php
Normal file
35
modules/blockgrouptop/views/js/index.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/*
|
||||
* 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
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
Reference in New Issue
Block a user