// Replaced screencast option by menu option
This commit is contained in:
@@ -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')
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user