Skip to content

Commit

Permalink
conversion en Mo ou Go de la tailled Max
Browse files Browse the repository at this point in the history
  • Loading branch information
syji35 committed Sep 18, 2024
1 parent 390aaf1 commit 8815193
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions themes/megalis/public/js/lufi-custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

// When it's ready
$(document).ready(function () {
if (maxSize > 0) {
$('#max-file-size-mo').text(i18n.maxSize.replace('XXX', filesize(maxSize, { symbols: { MB: "Mo", GB: "Go" } })));
}
});
3 changes: 2 additions & 1 deletion themes/megalis/templates/index.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<div class="row">
<div id="files" class="col s12 m12">
<h2><%= l('Drop files here') %></h2>
<p id="max-file-size"></p>
<p id="max-file-size-mo"></p>
<p><small><%= l('or') %></small></p>
<label>
<span id="file-browser-span" class="btn disabled waves-effect waves-light"><%= l('Click to open the file browser') %></span>
Expand Down Expand Up @@ -166,4 +166,5 @@
%= javascript '/js/jszip.min.js'
%= javascript '/js/lufi-notifications.js'
%= javascript '/js/lufi-up.js'
%= javascript '/js/lufi-custom.js'
% }

0 comments on commit 8815193

Please sign in to comment.