Reposition of footer after load ajax elements in networkmap dialog - #112

This commit is contained in:
enriquecd 2017-03-31 14:16:52 +02:00
parent a445877497
commit 3d89007adb
2 changed files with 21 additions and 8 deletions

View File

@ -642,6 +642,10 @@ function edit_node(data, dblClick) {
$("#node_details-1-1").html(adressess);
$("#node_details-2-1").html(data["os"]);
$("#node_details-3-1").html(data["group"]);
},
success: function(){
$('[aria-describedby=dialog_node_edit]').css({'top':'200px'});
$('#foot').css({'top':parseInt($("[aria-describedby=dialog_node_edit]").css('height')+$("[aria-describedby=dialog_node_edit]").css('top')),'position':'relative'});
}
});

View File

@ -762,15 +762,24 @@ else {
<script>
$(document).ready(function() {
$("*").on("click", function(){
if($("[aria-describedby=dialog_node_edit]").css('display') == 'block'){
$('#foot').css({'top':$("[aria-describedby=dialog_node_edit]").height()-150,'position':'relative'});
$("*").on("click", function(){
if($("[aria-describedby=dialog_node_edit]").css('display') == 'block'){
$('#foot').css({'top':parseInt($("[aria-describedby=dialog_node_edit]").css('height')+$("[aria-describedby=dialog_node_edit]").css('top')),'position':'relative'});
}
else{
$('#foot').css({'position':'','top':'0'});
}
});
$("[aria-describedby=dialog_node_edit]").on('dialogclose', function(event) {
$('#foot').css({'position':'','top':'0'});
});
}
else{
$('#foot').css({'position':'','top':'0'});
}
});
});
</script>