New: Hide the progress bar and the logs if the import has not started yet
This commit is contained in:
@@ -63,6 +63,8 @@ define('mp2migrator', ['mailpoet', 'jquery'], function(MailPoet, jQuery) {
|
||||
jQuery('#progresslabel').html(progress + '%');
|
||||
if(Number(result.current) !== 0) {
|
||||
jQuery('#skip-import').hide();
|
||||
jQuery('#progressbar').show();
|
||||
jQuery('#logger-container').show();
|
||||
}
|
||||
if(MailPoet.MP2Migrator.is_logging) {
|
||||
MailPoet.MP2Migrator.updateProgressbar_timeout = setTimeout(MailPoet.MP2Migrator.updateProgressbar, 1000);
|
||||
|
@@ -28,7 +28,7 @@
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div id="progressbar" class="mailpoet_progress mailpoet_progress_complete">
|
||||
<div id="progressbar" class="mailpoet_progress mailpoet_progress_complete" style="display: none">
|
||||
<span id="progresslabel" class="mailpoet_progress_label">0%</span>
|
||||
</div>
|
||||
|
||||
@@ -38,8 +38,10 @@
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<small><strong><%= __('Log...') %></strong></small>
|
||||
<div id="logger"></div>
|
||||
<div id="logger-container" style="display: none">
|
||||
<small><strong><%= __('Log...') %></strong></small>
|
||||
<div id="logger"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user