diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-01-06 14:34:35 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2015-01-06 14:34:35 +0100 |
commit | 357fbd88bead4aecb5a4f24d5d1087cf96da730f (patch) | |
tree | 5de001bcb88ee3f485f24d5ee9c3fe60ef305fb2 /apps/files/js | |
parent | 926737fdb780d7c32a6ecf95445a4d17ddc222f2 (diff) | |
download | nextcloud-server-357fbd88bead4aecb5a4f24d5d1087cf96da730f.tar.gz nextcloud-server-357fbd88bead4aecb5a4f24d5d1087cf96da730f.zip |
use class for no results div instead of id. the elements are not unique.
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 4 | ||||
-rw-r--r-- | apps/files/js/search.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 2ab9f2d43b5..e680ef4b3ed 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1691,13 +1691,13 @@ this.$el.find('#filestable thead th').addClass('hidden'); this.$el.find('#emptycontent').addClass('hidden'); if ( $('#searchresults').length === 0 || $('#searchresults').hasClass('hidden')) { - this.$el.find('#nofilterresults').removeClass('hidden'). + this.$el.find('.nofilterresults').removeClass('hidden'). find('p').text(t('files', "No entries in this folder match '{filter}'", {filter:this._filter})); } } else { this.$el.find('#filestable thead th').toggleClass('hidden', this.isEmpty); this.$el.find('#emptycontent').toggleClass('hidden', !this.isEmpty); - this.$el.find('#nofilterresults').addClass('hidden'); + this.$el.find('.nofilterresults').addClass('hidden'); } }, /** diff --git a/apps/files/js/search.js b/apps/files/js/search.js index 496c210232a..394bcb48603 100644 --- a/apps/files/js/search.js +++ b/apps/files/js/search.js @@ -48,7 +48,7 @@ } } function hideNoFilterResults() { - var $nofilterresults = $('#nofilterresults'); + var $nofilterresults = $('.nofilterresults'); if ( ! $nofilterresults.hasClass('hidden') ) { $nofilterresults.addClass('hidden'); } @@ -171,7 +171,7 @@ if (query.length > 2) { //search is not started until 500msec have passed window.setTimeout(function() { - $('#nofilterresults').addClass('hidden'); + $('.nofilterresults').addClass('hidden'); }, 500); } } |