From 2da5759c69966f21314def08bbcb8d6d632b933b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 1 Apr 2016 00:21:57 +0200 Subject: [PATCH] Just update nav if param is given. --- .../app/controllers/_application_controller_generic.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller_generic.coffee b/app/assets/javascripts/app/controllers/_application_controller_generic.coffee index e48dbcb69..8e9fa7f80 100644 --- a/app/assets/javascripts/app/controllers/_application_controller_generic.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller_generic.coffee @@ -105,7 +105,8 @@ class App.ControllerGenericIndex extends App.Controller @title @pageData.title, true # set nav bar - @navupdate @pageData.navupdate + if @pageData.navupdate + @navupdate @pageData.navupdate # bind render after a change is done if !@disableRender