// Replaced screencast option by menu option

This commit is contained in:
Damien Metzger
2013-09-12 18:24:18 +02:00
parent f20a3eb9b5
commit 06a178b8fe
7 changed files with 41 additions and 143 deletions
+9 -10
View File
@@ -234,22 +234,21 @@ class AdminEmployeesControllerCore extends AdminController
'hint' => $this->l('Back Office theme')
),
array(
'type' => 'switch',
'label' => $this->l('Show screencast at login:'),
'name' => 'bo_show_screencast',
'hint' => $this->l('Display the welcome video in the Admin panel dashboard at log in.'),
'type' => 'radio',
'label' => $this->l('Display admin menu:'),
'name' => 'bo_menu',
'required' => false,
'is_bool' => true,
'values' => array(
array(
'id' => 'bo_show_screencast_on',
'value' => 1,
'label' => $this->l('Enabled')
'id' => 'bo_menu_on',
'value' => 0,
'label' => $this->l('Top')
),
array(
'id' => 'bo_show_screencast_off',
'value' => 0,
'label' => $this->l('Disabled')
'id' => 'bo_menu_off',
'value' => 1,
'label' => $this->l('Left')
)
)
)
-17
View File
@@ -491,9 +491,6 @@ class AdminHomeControllerCore extends AdminController
$isoCountry = Context::getContext()->country->iso_code;
$stream_context = @stream_context_create(array('http' => array('method'=> 'GET', 'timeout' => 2)));
// SCREENCAST
$result['screencast'] = 'OK';
// PREACTIVATION
$result['partner_preactivation'] = $this->getBlockPartners();
@@ -510,20 +507,6 @@ class AdminHomeControllerCore extends AdminController
$this->content = Tools::jsonEncode($result);
}
public function ajaxProcessHideScreencast()
{
if ($employee = new Employee((int)Tools::getValue('id_employee')))
{
$employee->bo_show_screencast = 0;
if ($employee->save())
$this->content = '{"status":"ok"}';
else
$this->content = '{"status":"error","msg":"not saved"}';
}
else
$this->content = '{"status":"error", "msg":"employee does not exists"}';
}
public function getBlockPartners()
{
// Init var