Commit ff71c8f35254997fe7feb97e32affd2e6aec728b
1 parent
9f70f4aa
Exists in
master
Ajuste no botão de login.
Showing
1 changed file
with
8 additions
and
4 deletions
Show diff stats
view/assets/js/wikilibras.js
| ... | ... | @@ -433,10 +433,6 @@ |
| 433 | 433 | _showInitialScreen(true); |
| 434 | 434 | } |
| 435 | 435 | |
| 436 | - if ($("#login-container").html() === "") { | |
| 437 | - $("#login-container").html( | |
| 438 | - $("#main-navbar-collapse .navbar-right li").html()); | |
| 439 | - } | |
| 440 | 436 | $("#start-button").off("click").on("click", function() { |
| 441 | 437 | _showInitialScreen(false); |
| 442 | 438 | _showConfigurationScreen(true); |
| ... | ... | @@ -527,12 +523,20 @@ |
| 527 | 523 | // It removes the PyBossa default message |
| 528 | 524 | $(".row .col-md-12 p").remove(); |
| 529 | 525 | } |
| 526 | + | |
| 527 | + function _setupLoginContainer() { | |
| 528 | + if ($("#login-container").html() === "") { | |
| 529 | + $("#login-container").html( | |
| 530 | + $("#main-navbar-collapse .navbar-right li").html()); | |
| 531 | + } | |
| 532 | + } | |
| 530 | 533 | |
| 531 | 534 | function _loadMainComponents() { |
| 532 | 535 | dynengine.load(); |
| 533 | 536 | dynworkflow.load(); |
| 534 | 537 | submitSign.setup(upload_signs_url); |
| 535 | 538 | teachedSigns.setup(); |
| 539 | + _setupLoginContainer(); | |
| 536 | 540 | } |
| 537 | 541 | |
| 538 | 542 | pybossa.presentTask(function(task, deferred) { | ... | ... |