Merge branch 'release' of https://github.com/PrestaShop/PrestaShop into release
This commit is contained in:
@@ -44,7 +44,8 @@ function initCarrierWizard()
|
|||||||
'onLeaveStep' : onLeaveStepCallback,
|
'onLeaveStep' : onLeaveStepCallback,
|
||||||
'onFinish' : onFinishCallback,
|
'onFinish' : onFinishCallback,
|
||||||
'transitionEffect' : 'slideleft',
|
'transitionEffect' : 'slideleft',
|
||||||
'enableAllSteps' : enableAllSteps
|
'enableAllSteps' : enableAllSteps,
|
||||||
|
'keyNavigation' : false
|
||||||
});
|
});
|
||||||
displayRangeType();
|
displayRangeType();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class Blocktopmenu extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'blocktopmenu';
|
$this->name = 'blocktopmenu';
|
||||||
$this->tab = 'front_office_features';
|
$this->tab = 'front_office_features';
|
||||||
$this->version = 1.5;
|
$this->version = 1.6;
|
||||||
$this->author = 'PrestaShop';
|
$this->author = 'PrestaShop';
|
||||||
|
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
@@ -69,6 +69,7 @@ class Blocktopmenu extends Module
|
|||||||
!Configuration::updateGlobalValue('MOD_BLOCKTOPMENU_SEARCH', '1') ||
|
!Configuration::updateGlobalValue('MOD_BLOCKTOPMENU_SEARCH', '1') ||
|
||||||
!$this->registerHook('actionObjectCategoryUpdateAfter') ||
|
!$this->registerHook('actionObjectCategoryUpdateAfter') ||
|
||||||
!$this->registerHook('actionObjectCategoryDeleteAfter') ||
|
!$this->registerHook('actionObjectCategoryDeleteAfter') ||
|
||||||
|
!$this->registerHook('actionObjectCategoryAddAfter') ||
|
||||||
!$this->registerHook('actionObjectCmsUpdateAfter') ||
|
!$this->registerHook('actionObjectCmsUpdateAfter') ||
|
||||||
!$this->registerHook('actionObjectCmsDeleteAfter') ||
|
!$this->registerHook('actionObjectCmsDeleteAfter') ||
|
||||||
!$this->registerHook('actionObjectSupplierUpdateAfter') ||
|
!$this->registerHook('actionObjectSupplierUpdateAfter') ||
|
||||||
@@ -797,7 +798,11 @@ class Blocktopmenu extends Module
|
|||||||
|
|
||||||
return Db::getInstance()->executeS($sql);
|
return Db::getInstance()->executeS($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hookActionObjectCategoryAddAfter($params)
|
||||||
|
{
|
||||||
|
$this->clearMenuCache();
|
||||||
|
}
|
||||||
|
|
||||||
public function hookActionObjectCategoryUpdateAfter($params)
|
public function hookActionObjectCategoryUpdateAfter($params)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<module>
|
<module>
|
||||||
<name>blocktopmenu</name>
|
<name>blocktopmenu</name>
|
||||||
<displayName><![CDATA[Top horizontal menu]]></displayName>
|
<displayName><![CDATA[Top horizontal menu]]></displayName>
|
||||||
<version><![CDATA[1.5]]></version>
|
<version><![CDATA[1.6]]></version>
|
||||||
<description><![CDATA[Add a new horizontal menu to the top of your e-commerce website.]]></description>
|
<description><![CDATA[Add a new horizontal menu to the top of your e-commerce website.]]></description>
|
||||||
<author><![CDATA[PrestaShop]]></author>
|
<author><![CDATA[PrestaShop]]></author>
|
||||||
<tab><![CDATA[front_office_features]]></tab>
|
<tab><![CDATA[front_office_features]]></tab>
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!defined('_PS_VERSION_'))
|
||||||
|
exit;
|
||||||
|
|
||||||
|
function upgrade_module_1_6($object)
|
||||||
|
{
|
||||||
|
return ($object->registerHook('actionObjectCategoryAddAfter'));
|
||||||
|
}
|
||||||
@@ -24,11 +24,11 @@
|
|||||||
*}
|
*}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
{if isset($smarty.get.ad) && isset($smarty.get.live_edit)}
|
{if isset($smarty.get.ad) && isset($smarty.get.live_edit)}
|
||||||
var ad = "{$smarty.get.ad}";
|
var ad = '{$smarty.get.ad}';
|
||||||
{/if}
|
{/if}
|
||||||
var lastMove = '';
|
var lastMove = '';
|
||||||
var saveOK = '{l s='Module position saved' js=1}';
|
var saveOK = '{l s='Module position saved' js=1}';
|
||||||
var confirmClose = "{l s='Are you sure? If you close this window, its position won't be saved' js=1}";
|
var confirmClose = '{l s='Are you sure? If you close this window, its position won\'t be saved' js=1}';
|
||||||
var close = '{l s='Close' js=1}';
|
var close = '{l s='Close' js=1}';
|
||||||
var cancel = '{l s='Cancel' js=1}';
|
var cancel = '{l s='Cancel' js=1}';
|
||||||
var confirm = '{l s='Confirm' js=1}';
|
var confirm = '{l s='Confirm' js=1}';
|
||||||
|
|||||||
Reference in New Issue
Block a user