Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reviving Photoviewer

http://wiki.jqueryui.com/w/page/12138024/Photoviewer
(temp commit, will change this...)
  • Loading branch information...
commit 99903a7fb5cbb3e5b0d5a045a333a59e089b9fb5 1 parent 46c5b12
@rxaviers authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 ui/jquery.ui.photoviewer.js
View
14 ui/jquery.ui.photoviewer.js
@@ -142,7 +142,12 @@
if (direction) {
var previous = this._viewer();
- this.options.rotateOut.call(previous[0], direction, function() {
+ this.options.rotateOut.call(previous[0], {
+ up: "down",
+ down: "up",
+ left: "right",
+ right: "left"
+ }[direction], function() {
previous.remove();
});
}
@@ -156,12 +161,7 @@
self._shadow($this);
self._overlay().attr("title", anchor.title + self.options.titleSuffix)
if (visible) {
- self.options.rotateIn.call($this[0], {
- up: "down",
- down: "up",
- left: "right",
- right: "left"
- }[direction]);
+ self.options.rotateIn.call($this[0], direction);
} else {
self._overlay().css({
left: $(window).scrollLeft(),
Please sign in to comment.
Something went wrong with that request. Please try again.