]> source.dussan.org Git - nextcloud-server.git/commitdiff
use class for no results div instead of id. the elements are not unique.
authorJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 6 Jan 2015 13:34:35 +0000 (14:34 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 6 Jan 2015 13:34:35 +0000 (14:34 +0100)
apps/files/css/files.css
apps/files/js/filelist.js
apps/files/js/search.js
apps/files/templates/list.php
apps/files/templates/simplelist.php
apps/files_sharing/templates/list.php
apps/files_trashbin/templates/index.php

index a6a28b594ae9675019f7de26d5334deeca525ea1..1e7b1d45f7194ef0ed013aa50114c69e8e306ab0 100644 (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;
index 2ab9f2d43b558e2465088dae4c8841e9ba1ab1d3..e680ef4b3ed3290e9faf822442695d992af184de 100644 (file)
                                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');
                        }
                },
                /**
index 496c210232a871d4d651e674d68089930c6aa0a1..394bcb48603014ced311d3c85f14ccc6cfb08272 100644 (file)
@@ -48,7 +48,7 @@
                                }
                        }
                        function hideNoFilterResults() {
-                               var $nofilterresults = $('#nofilterresults');
+                               var $nofilterresults = $('.nofilterresults');
                                if ( ! $nofilterresults.hasClass('hidden') ) {
                                        $nofilterresults.addClass('hidden');
                                }
                                        if (query.length > 2) {
                                                //search is not started until 500msec have passed
                                                window.setTimeout(function() {
-                                                       $('#nofilterresults').addClass('hidden');
+                                                       $('.nofilterresults').addClass('hidden');
                                                }, 500);
                                        }
                                }
index 55754fd0c6b9503eb3985a64c5fc6689e6e1444d..aa879002baa47c0e0ce5431e04b3f9e8e5f803b8 100644 (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>
index 15bbfbb2921caeb8c52df0fb6647147ff102028a..6b6c018024fb2014032a9c256417a6845bdcd8fc 100644 (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>
index f9a6257dff242762659b359961e35130b2aa8cfb..55ad55a0a4f5c52d76c9aaa51e7bf88a475df1a3 100644 (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>
index b89ec66b15ae34804da5d523a57ab898cc82c17a..0c0f955cf40e7c0f48d7d269f8ba1999da006874 100644 (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>