Skip to content

Commit

Permalink
Add a retry/refresh button in viewport error notification
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Sep 18, 2014
1 parent 48b43d4 commit e82284c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions imp/js/dimpbase.js
Expand Up @@ -2826,6 +2826,7 @@ var DimpBase = {
break;

case 'checkmaillink':
case 'viewport_error_refresh':
this.poll(false);
e.memo.stop();
break;
Expand Down
1 change: 1 addition & 0 deletions imp/templates/dynamic/mailbox.html.php
Expand Up @@ -65,6 +65,7 @@
</div>

<div id="viewport_error" style="display:none">
<span class="iconImg dimpactionRefresh" id="viewport_error_refresh" title="<?php echo _("Retry") ?>"></span>
<div><?php echo _("Error loading message list.") ?></div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions imp/themes/default/dynamic/screen.css
Expand Up @@ -805,7 +805,7 @@ span.attachmentImg {
background-color: #ffa;
padding: 8px 10px;
}
#search_close, #search_edit, #search_refresh {
#search_close, #search_edit, #search_refresh, #viewport_error_refresh {
cursor: pointer;
float: right;
margin-top: -1px;
Expand All @@ -820,7 +820,7 @@ span.attachmentImg {

/* Viewport error */
#viewport_error {
background-color: red;
background-color: #f03232;
padding: 8px 10px;
}
#viewport_error div {
Expand Down

0 comments on commit e82284c

Please sign in to comment.