From 5f27709a0381d566d48a7eec264263b25f7553f6 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 29 Apr 2013 10:32:11 -0400 Subject: [PATCH] fixes #197 - Artists with '&' do not show their full name when you drill down --- dashboard-ui/scripts/librarybrowser.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 5439069240..16eff1790a 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -1,8 +1,9 @@ var LibraryBrowser = (function (window, $) { function encodeName(name) { - return name; - return encodeURIComponent(name).replace("'", '%27'); + + var val = $.param({ name: name }); + return val.substring(val.indexOf('=') + 1); } var defaultBackground = "#999;"; @@ -183,7 +184,7 @@ } else if (item.Type == "Game") { - html += '

' + item.GameSystem + '

'; + html += '

' + item.GameSystem + '

'; } else { html += '

' + LibraryBrowser.getMiscInfoHtml(item) + '

';