// BO : product page JS fixes
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12571 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -2082,6 +2082,12 @@ class AdminProductsControllerCore extends AdminController
|
||||
$this->tpl_form_vars['token'] = $this->token;
|
||||
$this->tpl_form_vars['combinationImagesJs'] = $this->getCombinationImagesJs();
|
||||
|
||||
// autoload rich text editor (tiny mce)
|
||||
$this->tpl_form_vars['tinymce'] = true;
|
||||
$iso = $this->context->language->iso_code;
|
||||
$this->tpl_form_vars['iso'] = file_exists(_PS_ROOT_DIR_.'/js/tiny_mce/langs/'.$iso.'.js') ? $iso : 'en';
|
||||
$this->tpl_form_vars['ad'] = dirname($_SERVER['PHP_SELF']);
|
||||
|
||||
if (Validate::isLoadedObject(($this->object)))
|
||||
$id_product = $this->object->id;
|
||||
else
|
||||
@@ -3015,12 +3021,6 @@ class AdminProductsControllerCore extends AdminController
|
||||
{
|
||||
$data = $this->createTemplate($this->tpl_form);
|
||||
|
||||
// autoload rich text editor (tiny mce)
|
||||
$iso = $this->context->language->iso_code;
|
||||
$this->tpl_form_vars['iso'] = file_exists(_PS_ROOT_DIR_.'/js/tiny_mce/langs/'.$iso.'.js') ? $iso : 'en';
|
||||
$this->tpl_form_vars['ad'] = dirname($_SERVER['PHP_SELF']);
|
||||
$this->tpl_form_vars['tinymce'] = true;
|
||||
|
||||
$currency = $this->context->currency;
|
||||
$data->assign('languages', $this->_languages);
|
||||
$data->assign('currency', $currency);
|
||||
|
||||
Reference in New Issue
Block a user