mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 01:56:39 +02:00
Fix login button injection on individual item page
This commit is contained in:
parent
e829bd2919
commit
6c7096b0d7
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@
|
|||
if (!$('body').hasClass("login-injected") && !userIsLoggedIn) {
|
||||
$('body').addClass("login-injected");
|
||||
var resultsElement = document.getElementById('results');
|
||||
if (!resultsElement) { // If we're on the main page, this will evaluate to `true`
|
||||
resultsElement = document.getElementById('item-show');
|
||||
resultsElement.style = 'margin-top:0;';
|
||||
}
|
||||
var logInElement = document.createElement('div');
|
||||
logInElement.classList.add("row");
|
||||
logInElement.id = "logInDiv";
|
||||
|
|
Loading…
Reference in a new issue