Skip to content

Apache Lucene open-source search software

SOLR-4341: Admin UI - Plugins/Stats Page contains loooong Values which result in horizontal Scrollbar

Stefan Matheis15bc6148ae54
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index f56e2e6fb77..95bbe3633de 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -80,6 +80,9 @@ Optimizations
* SOLR-4340: Admin UI - Analysis's Button Spinner goes wild
(steffkes)
+* SOLR-4341: Admin UI - Plugins/Stats Page contains loooong
+ Values which result in horizontal Scrollbar (steffkes)
+
Other Changes
----------------------
diff --git a/solr/webapp/web/js/scripts/plugins.js b/solr/webapp/web/js/scripts/plugins.js
index e8b94f62d5b..d00f72c4e94 100644
--- a/solr/webapp/web/js/scripts/plugins.js
+++ b/solr/webapp/web/js/scripts/plugins.js
@@ -254,12 +254,8 @@ var render_plugin_data = function( plugin_data, plugin_sort, types )
for( var stats_key in details[detail_key] )
{
- var stats_value = details[detail_key][stats_key];
-
- if( 'readerDir' === stats_key )
- {
- stats_value = stats_value.replace( /@/g, '@​' );
- }
+ var stats_value = new String( details[detail_key][stats_key] );
+ stats_value = stats_value.replace( /([\(@])/g, '$1​' );
content += '<li><dl class="clearfix">' + "\n";
content += '<dt>' + stats_key + ':</dt>' + "\n";