Ability to resize avatars before uploading them

This commit is contained in:
yflory
2017-12-04 15:03:43 +01:00
parent c59c6072f3
commit f52d987515
7 changed files with 73 additions and 6 deletions

View File

@@ -212,7 +212,9 @@ define([
queue.next();
};
var showNamePrompt = true;
// Don't show the rename prompt if we don't want to store the file in the drive (avatar)
var showNamePrompt = !config.noStore;
var promptName = function (file, cb) {
var extIdx = file.name.lastIndexOf('.');
var name = extIdx !== -1 ? file.name.slice(0,extIdx) : file.name;