Browse Source

use class for no results div instead of id. the elements are not unique.

tags/v8.0.0alpha2
Jörn Friedrich Dreyer 9 years ago
parent
commit
357fbd88be

+ 4
- 4
apps/files/css/files.css View File

@@ -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;

+ 2
- 2
apps/files/js/filelist.js View File

@@ -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');
}
},
/**

+ 2
- 2
apps/files/js/search.js View File

@@ -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);
}
}

+ 1
- 1
apps/files/templates/list.php View File

@@ -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>

+ 1
- 1
apps/files/templates/simplelist.php View File

@@ -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>

+ 1
- 1
apps/files_sharing/templates/list.php View File

@@ -8,7 +8,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>

+ 1
- 1
apps/files_trashbin/templates/index.php View File

@@ -12,7 +12,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>

Loading…
Cancel
Save