change 'Save to Files' icon from upload to folder, thx @jviereck for the feedback

This commit is contained in:
Jan-Christoph Borchardt 2015-05-20 12:06:46 +02:00
Родитель ee9f965a7e
Коммит 1ee6f99a9c
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -494,7 +494,7 @@ var Mail = {
attachmentId + '"] ' + saveToFilesBtnSelector;
}
$(saveToFilesBtnSelector)
.removeClass('icon-upload')
.removeClass('icon-folder')
.addClass('icon-loading-small')
.prop('disabled', true);
@ -531,7 +531,7 @@ var Mail = {
// Remove loading feedback again
$('.attachment-save-to-cloud')
.removeClass('icon-loading-small')
.addClass('icon-upload')
.addClass('icon-folder')
.prop('disabled', false);
}
});
@ -676,7 +676,7 @@ var Mail = {
$('textarea').autosize({append: '"\n\n"'});
};
var loadDraftSuccess = function(data) {
self.openComposer(data);
};

Просмотреть файл

@ -118,7 +118,7 @@ script('mail', 'jquery-visibility');
<img class="attachment-icon" src="{{attachment.mimeUrl}}" />
{{attachment.fileName}} <span class="attachment-size">({{humanFileSize attachment.size}})</span><br/>
<a class="button icon-download attachment-download" href="{{attachment.downloadUrl}}"><?php p($l->t('Download attachment')); ?></a>
<button class="icon-upload attachment-save-to-cloud"><?php p($l->t('Save to Files')); ?></button>
<button class="icon-folder attachment-save-to-cloud"><?php p($l->t('Save to Files')); ?></button>
</li>
</ul>
{{/if}}
@ -127,14 +127,14 @@ script('mail', 'jquery-visibility');
{{#each attachments}}
<li class="mail-message-attachment" data-message-id="{{messageId}}" data-attachment-id="{{id}}" data-attachment-mime="{{mime}}">
<a class="button icon-download attachment-download" href="{{downloadUrl}}" title="<?php p($l->t('Download attachment')); ?>"></a>
<button class="icon-upload attachment-save-to-cloud" title="<?php p($l->t('Save to Files')); ?>"></button>
<button class="icon-folder attachment-save-to-cloud" title="<?php p($l->t('Save to Files')); ?>"></button>
<img class="attachment-icon" src="{{mimeUrl}}" />
{{fileName}} <span class="attachment-size">({{humanFileSize size}})</span>
</li>
{{/each}}
</ul>
<p>
<button data-message-id="{{id}}" class="icon-upload attachments-save-to-cloud"><?php p($l->t('Save all to Files')); ?></button>
<button data-message-id="{{id}}" class="icon-folder attachments-save-to-cloud"><?php p($l->t('Save all to Files')); ?></button>
</p>
{{/if}}
</div>