Change auto sla graphs size in visual console editor mode - #1386

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

View File

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

View File

@ -1076,10 +1076,10 @@ function visual_map_print_item($mode = "read", $layoutData,
if ((get_parameter('action') == 'edit') || (get_parameter('operation') == 'edit_visualmap')) { if ((get_parameter('action') == 'edit') || (get_parameter('operation') == 'edit_visualmap')) {
if($width == 0 || $height == 0){ if($width == 0 || $height == 0){
if ($layoutData['id_metaconsole'] != 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{ 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{ else{