Permalink
Browse files

bug

  • Loading branch information...
AlexanderFlatscher committed Jun 3, 2012
1 parent 697231e commit 08960e3f38e6bf52857643cfa8c757d4b23834b5
Showing with 6 additions and 0 deletions.
  1. +3 −0 app/assets/javascripts/gmaps4rails/sidebar.js.coffee
  2. +3 −0 app/assets/javascripts/routes.js.coffee
@@ -29,6 +29,9 @@ window.switchSidebar = (data, callback) ->
.animate
"right": "0px",
300
+ ->
+ if(callback != undefined && typeof callback == 'function')
+ callback(data)
toggleSidebar.animate
"right": "-13px",
@@ -159,6 +159,9 @@ Path.map("/recipes/:recipe_slug").to () ->
route = this
+ if $(".right-haupt").data("status") == "closed"
+ switchSidebar()
+
getSearchSidebar(route.params.recipe_slug)
getRecipe = ->

0 comments on commit 08960e3

Please sign in to comment.