diff --git a/api/js/etemplate/et2_widget_vfs.js b/api/js/etemplate/et2_widget_vfs.js index 295d6482ee..4736bf0626 100644 --- a/api/js/etemplate/et2_widget_vfs.js +++ b/api/js/etemplate/et2_widget_vfs.js @@ -405,7 +405,7 @@ var et2_vfsMime = (function(){ "use strict"; return expose(et2_valueWidget.exten } this.image.attr("src", src); // tooltip for mimetypes with available detailed thumbnail - if (_value.mime.match(/application\/vnd\.oasis\.opendocument\.(text|presentation|spreadsheet|chart)/)) + if (_value.mime && _value.mime.match(/application\/vnd\.oasis\.opendocument\.(text|presentation|spreadsheet|chart)/)) { var tooltip_target = this.image.parent().parent().parent().length > 0 ? // Nextmatch row @@ -1205,7 +1205,7 @@ var et2_vfsSelect = (function(){ "use strict"; return et2_inputWidget.extend( set_value: function(value) { this.value = value; }, - + getValue: function() { return this.value; }