2013-03-12 Miguel de Dios <miguel.dedios@artica.es>

* godmode/modules/manage_network_components_form.php,
	godmode/modules/manage_network_templates_form.php: improved the code
	style.
	
	* extensions/update_manager/lib/functions.ajax.php,
	include/graphs/functions_flot.php: fixed the warnings PHP messages.
	
	Fixes: #3607177




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7838 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-03-12 16:20:53 +00:00
parent 3dd28258e1
commit ae6dbd8b0f
5 changed files with 92 additions and 69 deletions

View File

@ -1,3 +1,14 @@
2013-03-12 Miguel de Dios <miguel.dedios@artica.es>
* godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates_form.php: improved the code
style.
* extensions/update_manager/lib/functions.ajax.php,
include/graphs/functions_flot.php: fixed the warnings PHP messages.
Fixes: #3607177
2013-03-11 Miguel de Dios <miguel.dedios@artica.es> 2013-03-11 Miguel de Dios <miguel.dedios@artica.es>
* extensions/update_manager/lib/functions.ajax.php: disabled the * extensions/update_manager/lib/functions.ajax.php: disabled the

View File

@ -110,7 +110,11 @@ function update_pandora_get_packages_online_ajax($ajax = true) {
$return['last'] = $last; $return['last'] = $last;
$return['package'] = $package; $return['package'] = $package;
$return['timestamp'] = date($config["date_format"], $timestamp); if (!isset($config["date_format"]))
$default_date_format = "F j, Y, g:i a";
else
$default_date_format = $config["date_format"];
$return['timestamp'] = date($default_date_format, $timestamp);
$return['text_adv'] = html_print_image('images/world.png', true); $return['text_adv'] = html_print_image('images/world.png', true);
$return['end'] = 1; $return['end'] = 1;
} }

View File

@ -577,8 +577,12 @@ $(document).ready (function () {
}); });
}); });
<?php if ($id_component_type == 2) :?> <?php
if ($id_component_type == 2) {
?>
type_change (); type_change ();
<?php endif; ?> <?php
}
?>
//--> //-->
</script> </script>

View File

@ -249,6 +249,10 @@ function flot_area_graph($chart_data, $width, $height, $color, $legend, $long_in
$legend_events = ''; $legend_events = '';
$legend_alerts = ''; $legend_alerts = '';
if (empty($chart_extra_data)) {
$chart_extra_data = array();
}
foreach ($chart_extra_data as $i => $data) { foreach ($chart_extra_data as $i => $data) {
switch ($i) { switch ($i) {
case 'legend_alerts': case 'legend_alerts':