]> source.dussan.org Git - nextcloud-server.git/commitdiff
Flip sort indicators
authorJulius Härtl <jus@bitgrid.net>
Thu, 8 Nov 2018 12:32:10 +0000 (13:32 +0100)
committerJulius Härtl <jus@bitgrid.net>
Fri, 16 Nov 2018 13:12:47 +0000 (14:12 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/js/oc-dialogs.js

index e46dd9a57ead288d6dda17f950ac1cbc27b3fac2..49bf626ed8225d19360ab922ae76e1ca66a89b4f 100644 (file)
@@ -905,9 +905,9 @@ var OCdialogs = {
                self.$fileListHeader.find('.sort-indicator').addClass('hidden').removeClass('icon-triangle-n').removeClass('icon-triangle-s');
                self.$fileListHeader.find('[data-sort=' + self.filepicker.sortField + '] .sort-indicator').removeClass('hidden');
                if (self.filepicker.sortOrder === 'asc') {
-                       self.$fileListHeader.find('[data-sort=' + self.filepicker.sortField + '] .sort-indicator').addClass('icon-triangle-s');
-               } else {
                        self.$fileListHeader.find('[data-sort=' + self.filepicker.sortField + '] .sort-indicator').addClass('icon-triangle-n');
+               } else {
+                       self.$fileListHeader.find('[data-sort=' + self.filepicker.sortField + '] .sort-indicator').addClass('icon-triangle-s');
                }
                self.filepicker.filesClient.getFolderContents(dir).then(function(status, files) {
                        if (filter && filter.length > 0 && filter.indexOf('*') === -1) {