Skip to content

Commit

Permalink
Merge branch 'MDL-53577-fix' of https://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 7, 2016
2 parents b2c4091 + 82eb2cf commit ba1cdfe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/form/dndupload.js
Expand Up @@ -617,10 +617,10 @@ M.form_dndupload.init = function(Y, options) {
*/
display_size: function(size) {
// This is snippet of code (with some changes) is from the display_size function in moodlelib.
var gb = M.util.get_string('sizegb'),
mb = M.util.get_string('sizemb'),
kb = M.util.get_string('sizekb'),
b = M.util.get_string('sizeb');
var gb = M.util.get_string('sizegb', 'moodle'),
mb = M.util.get_string('sizemb', 'moodle'),
kb = M.util.get_string('sizekb', 'moodle'),
b = M.util.get_string('sizeb', 'moodle');

if (size >= 1073741824) {
size = Math.round(size / 1073741824 * 10) / 10 + gb;
Expand Down

0 comments on commit ba1cdfe

Please sign in to comment.