If all updates are applied, show Fully Updated. Fixes #101

Also include code for a more smooth visualization of the data
This commit is contained in:
Flavio Copes
2015-08-28 17:31:45 +02:00
parent 6a755ec692
commit 4176b32e61
4 changed files with 15 additions and 2 deletions

View File

@@ -78,6 +78,13 @@ $(function () {
UpdatesChart.on('draw', function(data){
if (data.index) { return; }
chart.find('.numeric span').text(Math.round(data.value) + '%');
var text = translations.PLUGIN_ADMIN.UPDATES_AVAILABLE;
if (data.value == 100) {
text = translations.PLUGIN_ADMIN.FULLY_UPDATED;
}
$('.js__updates-available-description').html(text)
$('.updates-chart .hidden').removeClass('hidden');
});
}