mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch '112-error-footer-en-mapas-de-red' into 'develop'
Reposition of footer after load ajax elements in networkmap dialog - #112 See merge request !337
This commit is contained in:
commit
4c8ebe44a3
@ -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…
x
Reference in New Issue
Block a user