Skip to content

Commit

Permalink
Animate the transition to the panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwinton committed Aug 17, 2012
1 parent 3db6915 commit 2a082a3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions australis/customization/mac/www/js/app/main.js
Expand Up @@ -133,11 +133,17 @@ define(function (require) {
if (clicks == 1) {
setTimeout(function() {
if (clicks == 1) {
self.effect("shake", { times: 3, distance: 5 }, 100);
self.effect("shake", { times: 3, distance: 5 }, 100);
} else {
var sortable = $("#arrowPanel .panelToolbarIconsRow");
self.insertBefore(sortable.find(".spacer"));
sortable.sortable("refresh");
var spacer = sortable.find(".spacer");
var position = self.css("position");
self.css({position: "absolute", top: self.offset().top, left: self.offset().left});
self.animate({top: spacer.offset().top, left: spacer.offset().left}, 300, function(){
self.insertBefore(spacer);
self.css("position", position);
sortable.sortable("refresh");
});
}
clicks = 0;
}, 200);
Expand Down

0 comments on commit 2a082a3

Please sign in to comment.