Commit b289b8e1 authored by Edgard Lorraine Messias's avatar Edgard Lorraine Messias Committed by Johan Cwiklinski

Fixed dialog position for planning page

parent 6cf9d5d3
......@@ -523,7 +523,15 @@ var GLPIPlanning = {
}
})
.load(ajaxurl, function() {
$(this).dialog('option', 'position', ['center', 'center'] );
$(this).dialog({
position: {
my: 'center',
at: 'center',
viewport: $(window),
of: $('#page'),
collision: 'fit'
}
});
});
}
},
......@@ -565,7 +573,15 @@ var GLPIPlanning = {
res_items_id: items_id,
},
function() {
$(this).dialog('option', 'position', ['center', 'center'] );
$(this).dialog({
position: {
my: 'center',
at: 'center',
viewport: $(window),
of: $('#page'),
collision: 'fit'
}
});
}
);
},
......@@ -575,7 +591,7 @@ var GLPIPlanning = {
},
position: {
my: 'center',
at: 'top',
at: 'center top',
viewport: $(window),
of: $('#page')
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment