diff --git a/js/files/circles.files.list.js b/js/files/circles.files.list.js index 2da4417cc..d91c6c9dd 100644 --- a/js/files/circles.files.list.js +++ b/js/files/circles.files.list.js @@ -30,7 +30,7 @@ * @classdesc Circles file list. * Contains a list of files filtered by circles * - * @param $el container element with existing markup for the #controls + * @param $el container element with existing markup for the .files-controls * and a table * @param [options] map of options, see other parameters * @param {Array.} [options.circlesIds] array of system tag ids to @@ -72,7 +72,7 @@ OC.Plugins.attach('OCA.Circles.FileList', this); - var $controls = this.$el.find('#controls').empty(); + var $controls = this.$el.find('.files-controls').empty(); this._initFilterField($controls); }, @@ -222,15 +222,15 @@ // root has special permissions if (!this._circlesIds.length) { // no tags selected - this.$el.find('#emptycontent').html('
' + + this.$el.find('.emptyfilelist.emptycontent').html('
' + '

' + t('circles', 'Please select circles to filter by') + '

'); } else { // tags selected but no results - this.$el.find('#emptycontent').html('
' + + this.$el.find('.emptyfilelist.emptycontent').html('
' + '

' + t('circles', 'No files found for the selected circles') + '

'); } - this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty); - this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty); + this.$el.find('.emptyfilelist.emptycontent').toggleClass('hidden', !this.isEmpty); + this.$el.find('.files-filestable thead th').toggleClass('hidden', this.isEmpty); } else { OCA.Files.FileList.prototype.updateEmptyContent.apply(this, arguments); diff --git a/templates/files/list.php b/templates/files/list.php index b2929034b..5d6f8b29f 100644 --- a/templates/files/list.php +++ b/templates/files/list.php @@ -1,7 +1,7 @@ -
+
-