Change auto sla graphs size in visual console editor mode -

This commit is contained in:
enriquecd 2017-10-06 14:03:44 +02:00
parent 1008912e94
commit d7ebacf2dc
2 changed files with 6 additions and 4 deletions
pandora_console

@ -1974,6 +1974,8 @@ function setEventsBar(id_data, values) {
if (data['no_data'] == true) {
if (values['width'] == "0" || values['height'] == "0") {
$("#" + id_data + " img").attr('src', url_hack_metaconsole + 'images/console/signes/module-events.png');
$("#" + id_data + " img").css('width', '500px');
$("#" + id_data + " img").css('height', '40px');
}
else {
$("#" + id_data + " img").attr('src', url_hack_metaconsole + 'images/console/signes/module-events.png');
@ -1985,8 +1987,8 @@ function setEventsBar(id_data, values) {
$("#" + id_data + " img").attr('src', url_hack_metaconsole + 'images/console/signes/module-events.png');
if($('#text-width').val() == 0 || $('#text-height').val() == 0){
$("#" + id_data + " img").css('width', '300px');
$("#" + id_data + " img").css('height', '180px');
$("#" + id_data + " img").css('width', '500px');
$("#" + id_data + " img").css('height', '40px');
}
else{
$("#" + id_data + " img").css('width', $('#text-width').val()+'px');

@ -1076,10 +1076,10 @@ function visual_map_print_item($mode = "read", $layoutData,
if ((get_parameter('action') == 'edit') || (get_parameter('operation') == 'edit_visualmap')) {
if($width == 0 || $height == 0){
if ($layoutData['id_metaconsole'] != 0) {
$img = '<img src="../../images/console/signes/module-events.png">';
$img = '<img src="../../images/console/signes/module-events.png" style="width:500px;height:40px;">';
}
else{
$img = '<img src="images/console/signes/module-events.png">';
$img = '<img src="images/console/signes/module-events.png" style="width:500px;height:40px;">';
}
}
else{