diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2020-01-13 23:19:04 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-01-14 14:18:16 +0100 |
commit | d873236d36294ed255e0b0184abd998f3887f4ea (patch) | |
tree | 9eb689fc827a6d64029bace4fa3a67953f65e148 /core/js | |
parent | 19397059d608df4ea4bd634513f97f1b90fd6de9 (diff) | |
download | nextcloud-server-d873236d36294ed255e0b0184abd998f3887f4ea.tar.gz nextcloud-server-d873236d36294ed255e0b0184abd998f3887f4ea.zip |
Remove outdated centering code for database switcher on install page
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/setup.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/core/js/setup.js b/core/js/setup.js index eb41795e427..7cf4c38071e 100644 --- a/core/js/setup.js +++ b/core/js/setup.js @@ -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); - } }); |