From 308dfc36b881443dc146b3f9b777c7f7f6475c90 Mon Sep 17 00:00:00 2001 From: randx Date: Thu, 27 Sep 2012 19:38:52 +0300 Subject: [PATCH] Fix back button for tree navigation --- app/views/tree/_tree.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/tree/_tree.html.haml b/app/views/tree/_tree.html.haml index 439b4ec205f..cdd67929f7e 100644 --- a/app/views/tree/_tree.html.haml +++ b/app/views/tree/_tree.html.haml @@ -61,7 +61,7 @@ ajaxGet('#{@logs_path}'); }); -- if params[:path] && request.xhr? +- if @path.present? && request.xhr? :javascript $(window).unbind('popstate'); $(window).bind('popstate', function() {