Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
16
gaia/apps/email/js/file_display.js
Executable file
16
gaia/apps/email/js/file_display.js
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
define(function(require) {
|
||||
var mozL10n = require('l10n!');
|
||||
|
||||
return {
|
||||
/**
|
||||
* Display a human-readable file size. Currently we always display
|
||||
* things in kilobytes because we are targeting a mobile device and we
|
||||
* want bigger sizes (like megabytes) to be obviously large numbers.
|
||||
*/
|
||||
fileSize: function(node, sizeInBytes) {
|
||||
var kilos = Math.ceil(sizeInBytes / 1024);
|
||||
mozL10n.setAttributes(node, 'attachment-size-kib', { kilobytes: kilos });
|
||||
}
|
||||
};
|
||||
});
|
||||
Loading…
Reference in a new issue