Skip to content

Commit

Permalink
Reviving Photoviewer
Browse files Browse the repository at this point in the history
http://wiki.jqueryui.com/w/page/12138024/Photoviewer
(temp commit, will change this...)
  • Loading branch information
rxaviers committed Jun 22, 2012
1 parent 46c5b12 commit 99903a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ui/jquery.ui.photoviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand All @@ -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(),
Expand Down

0 comments on commit 99903a7

Please sign in to comment.