Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-06-25 21:37:59 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-15 17:52:22 +0300
commitf743188645f840b049101b64793471435a6b2112 (patch)
tree3fa0028ec9bd7855d3810eef3a0e5f688eea9e5c /js/galleryview.js
parentd6c5d9ff76c4c5b364408f4566df64934a66f9da (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.js6
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));
};