mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Change auto sla graphs size in visual console editor mode - #1386
This commit is contained in:
parent
1008912e94
commit
d7ebacf2dc
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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user