Commit ff71c8f35254997fe7feb97e32affd2e6aec728b

Authored by Adabriand Furtado
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,10 +433,6 @@
433 _showInitialScreen(true); 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 $("#start-button").off("click").on("click", function() { 436 $("#start-button").off("click").on("click", function() {
441 _showInitialScreen(false); 437 _showInitialScreen(false);
442 _showConfigurationScreen(true); 438 _showConfigurationScreen(true);
@@ -527,12 +523,20 @@ @@ -527,12 +523,20 @@
527 // It removes the PyBossa default message 523 // It removes the PyBossa default message
528 $(".row .col-md-12 p").remove(); 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 function _loadMainComponents() { 534 function _loadMainComponents() {
532 dynengine.load(); 535 dynengine.load();
533 dynworkflow.load(); 536 dynworkflow.load();
534 submitSign.setup(upload_signs_url); 537 submitSign.setup(upload_signs_url);
535 teachedSigns.setup(); 538 teachedSigns.setup();
  539 + _setupLoginContainer();
536 } 540 }
537 541
538 pybossa.presentTask(function(task, deferred) { 542 pybossa.presentTask(function(task, deferred) {