}
self.$filePicker = $tmpl.octemplate({
dialog_name: dialogName,
- title: title
+ title: title,
+ emptytext: t('core', 'No files in here')
}).data('path', '').data('multiselect', multiselect).data('mimetype', mimetypeFilter);
if (modal === undefined) {
self._fillSlug();
+ if (files.length === 0) {
+ self.$filePicker.find('.emptycontent').show();
+ } else {
+ self.$filePicker.find('.emptycontent').hide();
+ }
+
$.each(files, function(idx, entry) {
entry.icon = OC.MimeType.getIconUrl(entry.mimetype);
if (typeof(entry.size) !== 'undefined' && entry.size >= 0) {
<div id="{dialog_name}" title="{title}">
<span class="dirtree breadcrumb"></span>
<div class="filelist-container">
+ <div class="emptycontent">
+ <div class="icon-folder"></div>
+ <h2>{emptytext}</h2>
+ </div>
<table id="filestable" class="filelist">
<tbody>
<tr data-entryname="{filename}" data-type="{type}">