Commit ed2044acba74cdc5720a8f29c01b2270f22f8d9f
Committed by
Diego Camarinha
1 parent
7e86bd7d
Exists in
master
and in
29 other branches
[Mezuro] Writing message when waiting for source tree to be processed
Showing
2 changed files
with
10 additions
and
3 deletions
Show diff stats
plugins/mezuro/public/javascripts/project_content.js
| ... | ... | @@ -59,17 +59,22 @@ function reloadProject(date){ |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | function showProjectContentFor(state){ |
| 62 | + alert(state); | |
| 62 | 63 | if (state == 'ERROR') |
| 63 | 64 | callAction('project_error', {}, showProjectResult); |
| 64 | 65 | else if (state == 'READY') { |
| 66 | + jQuery('.msg-time').hide(); | |
| 65 | 67 | callAction('project_result', {}, showProjectResult); |
| 66 | 68 | callAction('project_tree', {}, showProjectTree); |
| 67 | 69 | var project_name = jQuery("#project-result").attr('data-project-name'); |
| 68 | 70 | callAction('module_result', {module_name: project_name}, showModuleResult); |
| 69 | - } | |
| 71 | + } | |
| 70 | 72 | else if (state.endsWith("ING")) |
| 71 | - showProjectContentAfter(20); | |
| 72 | -} | |
| 73 | + jQuery('.msg-time').show(); | |
| 74 | + jQuery('.msg-time').replaceWith('O carregamento do projeto pode levar algumas horas!'); | |
| 75 | + | |
| 76 | + showProjectContentAfter(20); | |
| 77 | + } | |
| 73 | 78 | |
| 74 | 79 | function showProjectContentAfter(seconds){ |
| 75 | 80 | if (seconds > 0){ | ... | ... |
plugins/mezuro/views/content_viewer/show_project.rhtml