[-] CORE : fixed some bad include of jquery plugin
This commit is contained in:
@@ -19,14 +19,12 @@
|
|||||||
*
|
*
|
||||||
* @author PrestaShop SA <contact@prestashop.com>
|
* @author PrestaShop SA <contact@prestashop.com>
|
||||||
* @copyright 2007-2012 PrestaShop SA
|
* @copyright 2007-2012 PrestaShop SA
|
||||||
|
|
||||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
|
|
||||||
<link href="{$smarty.const._PS_JS_DIR_}jquery/plugins/fancybox/jquery.fancybox.css" rel="stylesheet" type="text/css" media="screen" />
|
|
||||||
<script type="text/javascript">{$autocompleteList}</script>
|
<script type="text/javascript">{$autocompleteList}</script>
|
||||||
<script type="text/javascript" src="{$smarty.const._PS_JS_DIR_}jquery/plugins/autocomplete/jquery.autocomplete.js"></script>
|
|
||||||
<script type="text/javascript" src="{$smarty.const._PS_JS_DIR_}jquery/plugins/fancybox/jquery.fancybox.js"></script>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var token = '{$token}';
|
var token = '{$token}';
|
||||||
var currentIndex = '{$currentIndex}';
|
var currentIndex = '{$currentIndex}';
|
||||||
|
|||||||
+1
-1
@@ -381,7 +381,7 @@ class MediaCore
|
|||||||
* @param mixed $name
|
* @param mixed $name
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function getJqueryPluginCSSPath($name, $folder)
|
public static function getJqueryPluginCSSPath($name, $folder = null)
|
||||||
{
|
{
|
||||||
if ($folder === null)
|
if ($folder === null)
|
||||||
$folder = _PS_JS_DIR_.'jquery/plugins/'; //set default folder
|
$folder = _PS_JS_DIR_.'jquery/plugins/'; //set default folder
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ class AdminCartRulesControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setMedia()
|
||||||
|
{
|
||||||
|
parent::setMedia();
|
||||||
|
$this->addJqueryPlugin(array('typewatch', 'fancybox', 'autocomplete'));
|
||||||
|
}
|
||||||
|
|
||||||
public function postProcess()
|
public function postProcess()
|
||||||
{
|
{
|
||||||
if (Tools::isSubmit('submitAddcart_rule') || Tools::isSubmit('submitAddcart_ruleAndStay'))
|
if (Tools::isSubmit('submitAddcart_rule') || Tools::isSubmit('submitAddcart_ruleAndStay'))
|
||||||
@@ -465,13 +471,6 @@ class AdminCartRulesControllerCore extends AdminController
|
|||||||
'desc' => $this->l('Save and Stay')
|
'desc' => $this->l('Save and Stay')
|
||||||
);
|
);
|
||||||
|
|
||||||
// Todo: change for "Media" version
|
|
||||||
$this->addJs(_PS_JS_DIR_.'jquery/plugins/jquery.typewatch.js');
|
|
||||||
$this->addJs(_PS_JS_DIR_.'jquery/plugins/fancybox/jquery.fancybox.js');
|
|
||||||
$this->addJs(_PS_JS_DIR_.'jquery/plugins/autocomplete/jquery.autocomplete.js');
|
|
||||||
$this->addCss(_PS_JS_DIR_.'jquery/plugins/fancybox/jquery.fancybox.css');
|
|
||||||
$this->addCss(_PS_JS_DIR_.'jquery/plugins/autocomplete/jquery.autocomplete.css');
|
|
||||||
|
|
||||||
$current_object = $this->loadObject(true);
|
$current_object = $this->loadObject(true);
|
||||||
|
|
||||||
// All the filter are prefilled with the correct information
|
// All the filter are prefilled with the correct information
|
||||||
|
|||||||
@@ -128,6 +128,12 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
$this->logged_on_addons = true;
|
$this->logged_on_addons = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setMedia()
|
||||||
|
{
|
||||||
|
parent::setMedia();
|
||||||
|
$this->addJqueryPlugin(array('autocomplete', 'fancybox'));
|
||||||
|
}
|
||||||
|
|
||||||
public function ajaxProcessRefreshModuleList()
|
public function ajaxProcessRefreshModuleList()
|
||||||
{
|
{
|
||||||
// Refresh modules_list.xml every week
|
// Refresh modules_list.xml every week
|
||||||
|
|||||||
Reference in New Issue
Block a user