diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-10-03 14:07:08 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-10-03 14:22:34 +0200 |
commit | 21ed4d5845fb5b2801639834ad7e9523eb9cadc2 (patch) | |
tree | 06369cc779ba8de045c6302f490a107c8b22e971 /data/js/script.js | |
parent | c3b75b7edba5c56cd4dab24a323167b23814c6bc (diff) |
Support EXIF orientation in colorbox
This also reindents colorbox.css.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'data/js/script.js')
-rw-r--r-- | data/js/script.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/data/js/script.js b/data/js/script.js index 9aabf7557..100f30bd0 100644 --- a/data/js/script.js +++ b/data/js/script.js @@ -248,6 +248,9 @@ function fixedEncodeURIComponent (str) { previous: '<span class="glyphicon glyphicon-chevron-left"></span>', close: '<span class="glyphicon glyphicon-remove"></span>', loop: false, + orientation: function() { + return parseInt($(this).children().first().parent().attr("data-orientation")); + }, }); } setup_colorbox(); |