Fix eslint no-mixed-operators in es5 files

[MAILPOET-1145]
This commit is contained in:
Pavel Dohnal
2018-02-19 15:51:01 +00:00
parent 0ff9c006d8
commit 704e4e40f7
5 changed files with 7 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ define('mp2migrator', ['mailpoet', 'jquery'], function (mp, jQuery) {
// Move the progress bar
var progress = 0;
if ((result.total !== undefined) && (Number(result.total) !== 0)) {
progress = Math.round(Number(result.current) / Number(result.total) * 100);
progress = Math.round((Number(result.current) / Number(result.total)) * 100);
}
jQuery('#progressbar').progressbar('option', 'value', progress);
jQuery('#progresslabel').html(progress + '%');