Reposition of footer after load ajax elements in networkmap dialog - #112
This commit is contained in:
parent
a445877497
commit
3d89007adb
|
@ -642,6 +642,10 @@ function edit_node(data, dblClick) {
|
||||||
$("#node_details-1-1").html(adressess);
|
$("#node_details-1-1").html(adressess);
|
||||||
$("#node_details-2-1").html(data["os"]);
|
$("#node_details-2-1").html(data["os"]);
|
||||||
$("#node_details-3-1").html(data["group"]);
|
$("#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'});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -764,13 +764,22 @@ else {
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("*").on("click", function(){
|
$("*").on("click", function(){
|
||||||
if($("[aria-describedby=dialog_node_edit]").css('display') == 'block'){
|
if($("[aria-describedby=dialog_node_edit]").css('display') == 'block'){
|
||||||
$('#foot').css({'top':$("[aria-describedby=dialog_node_edit]").height()-150,'position':'relative'});
|
$('#foot').css({'top':parseInt($("[aria-describedby=dialog_node_edit]").css('height')+$("[aria-describedby=dialog_node_edit]").css('top')),'position':'relative'});
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#foot').css({'position':'','top':'0'});
|
$('#foot').css({'position':'','top':'0'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("[aria-describedby=dialog_node_edit]").on('dialogclose', function(event) {
|
||||||
|
|
||||||
|
$('#foot').css({'position':'','top':'0'});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue