From c715a56cdf25d4e5690764464e4504337bb1230a Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 25 Apr 2013 23:33:54 -0400 Subject: [PATCH] added back index numbers --- dashboard-ui/scripts/librarybrowser.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 11579499c8..b232229fc0 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -433,9 +433,18 @@ html += '
'; + var name = item.Name; + + if (item.IndexNumber != null) { + name = item.IndexNumber + " - " + name; + } + if (item.ParentIndexNumber != null) { + name = item.ParentIndexNumber + "." + name; + } + if (!imgUrl && !options.showTitle) { html += "
"; - html += item.Name; + html += name; html += "
"; } @@ -451,7 +460,7 @@ if (options.showTitle) { html += "
"; - html += item.Name; + html += name; html += "
"; }