diff options
| author | anicet | 2015-06-16 10:35:39 +0200 |
|---|---|---|
| committer | anicet | 2015-06-16 10:45:54 +0200 |
| commit | 5528857e90c5accb252768519f82bb500db74ac2 (patch) | |
| tree | b8741455708ef1db0183c01f57dd639a3b4eeda9 /app/assets/javascripts | |
| parent | 9b74d771ba328aee61450cec2122dbbd55d879f0 (diff) | |
| download | chouette-core-5528857e90c5accb252768519f82bb500db74ac2.tar.bz2 | |
Ie report : display files in html table
Diffstat (limited to 'app/assets/javascripts')
| -rw-r--r-- | app/assets/javascripts/partials/ie_report.js.coffee.erb | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/app/assets/javascripts/partials/ie_report.js.coffee.erb b/app/assets/javascripts/partials/ie_report.js.coffee.erb index 8087071cb..579335521 100644 --- a/app/assets/javascripts/partials/ie_report.js.coffee.erb +++ b/app/assets/javascripts/partials/ie_report.js.coffee.erb @@ -1,41 +1,5 @@ $(".imports.show, .exports.show, .compliance_checks.show").ready -> - getFileResults = (html_container, html_element) -> - html_container.children().each -> - if($(this).is(html_element)) - $(this).show() - else - $(this).hide() - - getFileStatistics = (id)-> - Morris.Donut({ - element: id, - data: [ - { - label: $(".files_error").data('label'), - value: $('.files_error span.file_name').size() - }, - { - label: $(".files_ignored").data('label'), - value: $('.files_ignored span.file_name').size() - }, - { - label: $(".files_ok").data('label'), - value: $('.files_ok span.file_name').size() - } - ], - colors: [ "#e22b1b", "#898e7f", "#8fc861" ] - }).on('click', update = (i, row) -> - switch i - when 0 then getFileResults($(".results"), $(".files_error")) - when 1 then getFileResults($(".results"), $(".files_ignored")) - when 2 then getFileResults($(".results"), $(".files_ok")) - ) - getFileResults($(".results"), $(".files_error")) - - if $( "#files_statistics" ).length - getFileStatistics('files_statistics') - refreshInterval = $(".report").data("refresh-interval") if refreshInterval > 0 reloadPage = () -> window.location.reload() |
