Some inclusions in mobile view (MC) and minor fixes
This commit is contained in:
parent
cf6ad584d4
commit
201d3194de
|
@ -1296,6 +1296,11 @@ table.tactical_bars {
|
|||
-webkit-border-radius: 15px !important;
|
||||
}
|
||||
|
||||
.ui-header.ui-bar-a .ui-btn-icon-notext .ui-btn-inner .ui-icon {
|
||||
margin-top: -3px;
|
||||
margin-left: 3.5px;
|
||||
}
|
||||
|
||||
#login_btn-container .ui-icon {
|
||||
background-color: #333 !important;
|
||||
border-radius: 15px !important;
|
||||
|
@ -1431,7 +1436,7 @@ div.nodata_container {
|
|||
}
|
||||
|
||||
.ui-icon-delete {
|
||||
margin-top: -3px !important;
|
||||
margin-top: -3px;
|
||||
}
|
||||
|
||||
.empty_advice {
|
||||
|
|
|
@ -183,7 +183,6 @@ switch ($action) {
|
|||
}
|
||||
return;
|
||||
|
||||
break;
|
||||
case 'login':
|
||||
if ($user->login() && $user->isLogged()) {
|
||||
if (file_exists('../enterprise/load_enterprise.php')) {
|
||||
|
@ -279,9 +278,6 @@ switch ($action) {
|
|||
$page = 'events';
|
||||
break;
|
||||
|
||||
case 'Group view':
|
||||
break;
|
||||
|
||||
case 'Alert detail':
|
||||
$page = 'alerts';
|
||||
break;
|
||||
|
@ -295,6 +291,11 @@ switch ($action) {
|
|||
$id_map = (int) db_get_value('id', 'tlayout', 'name', $section_data);
|
||||
$_GET['id'] = $id_map;
|
||||
break;
|
||||
|
||||
case 'Group view':
|
||||
default:
|
||||
// No content.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -351,7 +352,7 @@ switch ($action) {
|
|||
break;
|
||||
|
||||
case 'visualmaps':
|
||||
// Show a list ov VC.
|
||||
// Show a list of VC.
|
||||
$vc_list = new Visualmaps();
|
||||
$vc_list->show();
|
||||
break;
|
||||
|
|
|
@ -425,7 +425,12 @@ class Agent
|
|||
success: function(r) {
|
||||
$.mobile.hidePageLoadingMsg();
|
||||
var className = $('#list_agent_Modules').attr('class');
|
||||
$('#list_agent_Modules').parent().html(r);
|
||||
if (document.getElementById('list_agent_Modules') == null) {
|
||||
$($('p.empty_advice')[0]).parent().html(r);
|
||||
className = 'ui-responsive table-stroke ui-table ui-table-reflow';
|
||||
} else {
|
||||
$('#list_agent_Modules').parent().html(r);
|
||||
}
|
||||
$('#list_agent_Modules').addClass(className);
|
||||
},
|
||||
error: function(r, t, e) {
|
||||
|
@ -468,7 +473,7 @@ class Agent
|
|||
'id_agent' => $this->id,
|
||||
'all_modules' => true,
|
||||
'status' => -1,
|
||||
'name' => $name_filter,
|
||||
'name' => '%'.$name_filter.'%',
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -70,42 +70,40 @@ class Home
|
|||
];
|
||||
}
|
||||
|
||||
if (!$system->getConfig('metaconsole')) {
|
||||
$items['alerts'] = [
|
||||
'name' => __('Alerts'),
|
||||
'filename' => 'alerts.php',
|
||||
'menu_item' => true,
|
||||
'icon' => 'alerts',
|
||||
];
|
||||
$items['alerts'] = [
|
||||
'name' => __('Alerts'),
|
||||
'filename' => 'alerts.php',
|
||||
'menu_item' => true,
|
||||
'icon' => 'alerts',
|
||||
];
|
||||
|
||||
$items['agents'] = [
|
||||
'name' => __('Agents'),
|
||||
'filename' => 'agents.php',
|
||||
'menu_item' => true,
|
||||
'icon' => 'agents',
|
||||
];
|
||||
$items['agents'] = [
|
||||
'name' => __('Agents'),
|
||||
'filename' => 'agents.php',
|
||||
'menu_item' => true,
|
||||
'icon' => 'agents',
|
||||
];
|
||||
|
||||
$items['modules'] = [
|
||||
'name' => __('Modules'),
|
||||
'filename' => 'modules.php',
|
||||
'menu_item' => true,
|
||||
'icon' => 'modules',
|
||||
];
|
||||
$items['modules'] = [
|
||||
'name' => __('Modules'),
|
||||
'filename' => 'modules.php',
|
||||
'menu_item' => true,
|
||||
'icon' => 'modules',
|
||||
];
|
||||
|
||||
// Not in home.
|
||||
$items['agent'] = [
|
||||
'name' => __('Agent'),
|
||||
'filename' => 'agent.php',
|
||||
'menu_item' => false,
|
||||
'icon' => '',
|
||||
];
|
||||
$items['module_graph'] = [
|
||||
'name' => __('Module graph'),
|
||||
'filename' => 'module_graph.php',
|
||||
'menu_item' => false,
|
||||
'icon' => '',
|
||||
];
|
||||
}
|
||||
// Not in home.
|
||||
$items['agent'] = [
|
||||
'name' => __('Agent'),
|
||||
'filename' => 'agent.php',
|
||||
'menu_item' => false,
|
||||
'icon' => '',
|
||||
];
|
||||
$items['module_graph'] = [
|
||||
'name' => __('Module graph'),
|
||||
'filename' => 'module_graph.php',
|
||||
'menu_item' => false,
|
||||
'icon' => '',
|
||||
];
|
||||
|
||||
$this->pagesItems = $items;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue