app/assets/javascripts/arctic_admin.js in arctic_admin-1.0.3 vs app/assets/javascripts/arctic_admin.js in arctic_admin-1.0.4

- old
+ new

@@ -1,15 +1,16 @@ $(function() { $('#sidebar').click(function (e) { - var position = $(this).position() + var position = $(this).position(); + var width = $(this).width(); if (e.pageX < position.left) { if ($(this).css('right') == '0px') { $(this).animate({ - right: "-=230" + right: "-="+width }, 600, function() {}); } else { $(this).animate({ - right: "+=230" + right: "+="+width }, 600, function() {}); } } });