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-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'});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue