Skip to content

Commit

Permalink
Hide uploading text when using progress bar
Browse files Browse the repository at this point in the history
superfluous visual information, since the progress bar implies the
uploading action
  • Loading branch information
slusarz committed Aug 21, 2014
1 parent 241ac91 commit d38dbbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions imp/js/compose-dimp.js
Expand Up @@ -1467,7 +1467,8 @@ var IMP_Compose_Attachlist = Class.create({
.insert(
new Element('SPAN')
.addClassName('attach_upload_text')
.insert((Object.isElement(f) ? $F(f) : f.name).escapeHTML() + ' (' + DimpCore.text.uploading + ')')
.insert((Object.isElement(f) ? $F(f) : f.name).escapeHTML())
.insert(new Element('SPAN').insert('(' + DimpCore.text.uploading + ')'))
);

$('attach_list').show().insert(li);
Expand Down Expand Up @@ -1559,7 +1560,9 @@ var IMP_Compose_Attachlist = Class.create({
backgroundPosition: parseInt(100 - (e2.loaded / e2.total * 100), 10) + "% 0"
});
if (!p.visible()) {
li.down('.attach_upload_text').addClassName('attach_upload_text_progress');
li.down('.attach_upload_text')
.addClassName('attach_upload_text_progress')
.down('SPAN').remove();
p.show();
}
}
Expand Down
3 changes: 3 additions & 0 deletions imp/themes/default/dynamic/screen.css
Expand Up @@ -726,6 +726,9 @@ div.msgfullread span.messagePrintShow {
-o-text-overflow: ellipsis;
white-space: nowrap;
}
#attach_list span.attach_upload_text span {
padding-left: 5px;
}
#attach_list span.attach_upload_text_progress {
max-width: 290px;
margin-right: 10px;
Expand Down

0 comments on commit d38dbbc

Please sign in to comment.