Remove outdated centering code for database switcher on install page

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2020-01-13 23:19:04 +01:00 committed by Julius Härtl
parent 19397059d6
commit d873236d36
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 0 additions and 14 deletions

View File

@ -123,18 +123,4 @@ $(document).ready(function() {
drawTitles: true,
nonce: btoa(OC.requestToken),
});
// centers the database chooser if it is too wide
if($('#databaseBackend').width() > 300) {
// this somehow needs to wait 250 milliseconds
// otherwise it gets overwritten
setTimeout(function(){
// calculate negative left margin
// half of the difference of width and default bix width of 300
// add 10 to clear left side padding of button group
var leftMargin = (($('#databaseBackend').width() - 300) / 2 + 10 ) * -1;
$('#databaseBackend').css('margin-left', Math.floor(leftMargin) + 'px');
}, 250);
}
});