Merge branch '704-Agrupar-gráficas-dev' into 'develop'
Fixed problem without graphics See merge request !512
This commit is contained in:
commit
8a1136d99e
|
@ -95,6 +95,11 @@ echo "</div>";
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$("#div_"+hash).remove();
|
$("#div_"+hash).remove();
|
||||||
$("#tgl_div_"+hash).prepend("<div id='div_"+hash+"' style='width: 100%;padding-left: 63px; padding-top: 7px;'>"+data+"</div>");
|
$("#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 *= bullet]').css('margin-left','0');
|
||||||
$('div[class *= graph]').css('margin-left','0');
|
$('div[class *= graph]').css('margin-left','0');
|
||||||
$('div[id *= gauge_]').css('width','100%');
|
$('div[id *= gauge_]').css('width','100%');
|
||||||
|
|
Loading…
Reference in New Issue