Fixed problem without graphics

This commit is contained in:
Daniel Maya 2017-05-25 16:54:07 +02:00
parent 42c7474ceb
commit b3e530658a
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ echo "</div>";
success: function(data) {
$("#div_"+hash).remove();
$("#tgl_div_"+hash).prepend("<div id='div_"+hash+"' style='width: 100%;padding-left: 63px; padding-top: 7px;'>"+data+"</div>");
if($('div[class *= graph]').length == 0 && $('div[class *= bullet]').length == 0 && $('div[id *= gauge_]').length == 0){
$("#div_"+hash).remove();
}
$('div[class *= bullet]').css('margin-left','0');
$('div[class *= graph]').css('margin-left','0');
$('div[id *= gauge_]').css('width','100%');