// Replaced screencast option by menu option

This commit is contained in:
Damien Metzger
2013-09-12 18:23:44 +02:00
parent f20a3eb9b5
commit 06a178b8fe
7 changed files with 41 additions and 143 deletions
-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