From b36d8ba8b0e19b8373a93a36836861968874bc2d Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Mon, 28 Jan 2013 17:28:17 +0530 Subject: [PATCH] Fix createNavigation Fix create navigation to not render 'Home' link if index page does not have any children. --- js/mouchak.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mouchak.js b/js/mouchak.js index d88f53c..de338c7 100644 --- a/js/mouchak.js +++ b/js/mouchak.js @@ -291,7 +291,7 @@ var AppView = Backbone.View.extend({ }, createNavigation: function(page) { var li; - if(page === 'index') { + if(page === 'index' && !_.isEmpty(M.pages.get(page).get('children'))) { li = '
  • Home
  • '; $('#nav-index .nav').append(li); } -- 1.7.10.4