summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2015-01-06 14:34:35 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2015-01-06 14:34:35 +0100
commit357fbd88bead4aecb5a4f24d5d1087cf96da730f (patch)
tree5de001bcb88ee3f485f24d5ee9c3fe60ef305fb2 /apps/files
parent926737fdb780d7c32a6ecf95445a4d17ddc222f2 (diff)
downloadnextcloud-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')
-rw-r--r--apps/files/css/files.css8
-rw-r--r--apps/files/js/filelist.js4
-rw-r--r--apps/files/js/search.js4
-rw-r--r--apps/files/templates/list.php2
-rw-r--r--apps/files/templates/simplelist.php2
5 files changed, 10 insertions, 10 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index a6a28b594ae..1e7b1d45f71 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -600,7 +600,7 @@ table.dragshadow td.size {
opacity: 0;
}
-#nofilterresults {
+.nofilterresults {
font-size: 16px;
color: #888;
position: absolute;
@@ -608,12 +608,12 @@ table.dragshadow td.size {
top: 30%;
width: 100%;
}
-#nofilterresults h2 {
+.nofilterresults h2 {
font-size: 22px;
margin-bottom: 10px;
}
-#nofilterresults [class^="icon-"],
-#nofilterresults [class*=" icon-"] {
+.nofilterresults [class^="icon-"],
+.nofilterresults [class*=" icon-"] {
background-size: 64px;
height: 64px;
width: 64px;
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);
}
}
diff --git a/apps/files/templates/list.php b/apps/files/templates/list.php
index 55754fd0c6b..aa879002baa 100644
--- a/apps/files/templates/list.php
+++ b/apps/files/templates/list.php
@@ -60,7 +60,7 @@
<p><?php p($l->t('Upload some content or sync with your devices!')); ?></p>
</div>
-<div id="nofilterresults" class="hidden">
+<div class="nofilterresults hidden">
<div class="icon-search"></div>
<h2><?php p($l->t('No entries found in this folder')); ?></h2>
<p></p>
diff --git a/apps/files/templates/simplelist.php b/apps/files/templates/simplelist.php
index 15bbfbb2921..6b6c018024f 100644
--- a/apps/files/templates/simplelist.php
+++ b/apps/files/templates/simplelist.php
@@ -11,7 +11,7 @@
<input type="hidden" name="dir" value="" id="dir">
-<div id="nofilterresults" class="hidden">
+<div class="nofilterresults hidden">
<div class="icon-search"></div>
<h2><?php p($l->t('No entries found in this folder')); ?></h2>
<p></p>