diff options
author | Olivier Paroz <github@oparoz.com> | 2015-06-25 21:37:59 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-15 17:52:22 +0300 |
commit | f743188645f840b049101b64793471435a6b2112 (patch) | |
tree | 3fa0028ec9bd7855d3810eef3a0e5f688eea9e5c /js/galleryview.js | |
parent | d6c5d9ff76c4c5b364408f4566df64934a66f9da (diff) |
Use a 3rd style to indicate which sort order is active
+ remove unused style
Diffstat (limited to 'js/galleryview.js')
-rw-r--r-- | js/galleryview.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/galleryview.js b/js/galleryview.js index 9436562e..fc5397f9 100644 --- a/js/galleryview.js +++ b/js/galleryview.js @@ -129,9 +129,9 @@ var icon = sortType + sortOrder; var setButton = function (button, icon, active) { - button.removeClass('inactive-button'); - if (!active) { - button.addClass('inactive-button'); + button.removeClass('active-button'); + if (active) { + button.addClass('active-button'); } button.find('img').attr('src', OC.imagePath(Gallery.appName, icon)); }; |