diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-08 13:32:10 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-11-16 14:12:47 +0100 |
commit | 916cdb260ef5fd35cb671468a93044d8decb2ee3 (patch) | |
tree | f83d36f086fbcb55bc8a169089c177bcb01c42eb /core/js | |
parent | 3e11337b3b4c36df20d5565d60d05995b0314363 (diff) | |
download | nextcloud-server-916cdb260ef5fd35cb671468a93044d8decb2ee3.tar.gz nextcloud-server-916cdb260ef5fd35cb671468a93044d8decb2ee3.zip |
Flip sort indicators
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/oc-dialogs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index e46dd9a57ea..49bf626ed82 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -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) { |