Merge branch 'MDL-68667-master' of git://github.com/aanabit/moodle
[moodle.git] / repository / filepicker.js
index 2f8744a..e7c4c4b 100644 (file)
@@ -1149,7 +1149,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) {