MDL-68667 filepicker: Use shortitle parameter

This commit is contained in:
Amaia Anabitarte
2020-05-25 13:36:56 +02:00
parent 38cc6d1071
commit e48b197957
+1 -1
View File
@@ -1085,7 +1085,7 @@ M.core_filepicker.init = function(Y, options) {
}, false);
},
select_file: function(args) {
var argstitle = args.title;
var argstitle = args.shorttitle ? args.shorttitle : args.title;
// Limit the string length so it fits nicely on mobile devices
var titlelength = 30;
if (argstitle.length > titlelength) {