From c43cae94b110d06740cf03caf473fea449e47a06 Mon Sep 17 00:00:00 2001
From: diosmosis <benakamoorthi@fastmail.fm>
Date: Wed, 26 Feb 2014 12:39:36 +0000
Subject: [PATCH] Make sure dashboard dashboard links are shown if there is
 only one but there are other dashboard menu items.

---
 plugins/Dashboard/javascripts/dashboardObject.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/plugins/Dashboard/javascripts/dashboardObject.js b/plugins/Dashboard/javascripts/dashboardObject.js
index c4be425902..fec02213d5 100644
--- a/plugins/Dashboard/javascripts/dashboardObject.js
+++ b/plugins/Dashboard/javascripts/dashboardObject.js
@@ -434,10 +434,12 @@
             var dashboardMenuListItems = dashboardMenuList.find('>li');
 
             dashboardMenuListItems.filter(function () {
-                return $(this).attr('id').indexOf('Dashboard_embeddedIndex') === 0;
+                return $(this).attr('id').indexOf('Dashboard_embeddedIndex') == 0;
             }).remove();
 
-            if (dashboards.length > 1) {
+            if (dashboards.length > 1
+                || dashboardMenuListItems.length >= 1
+            ) {
                 dashboardMenuList.show();
                 var items = [];
                 for (var i = 0; i < dashboards.length; i++) {
-- 
GitLab