lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steff...@apache.org
Subject svn commit: r1437767 - in /lucene/dev/trunk/solr: CHANGES.txt webapp/web/js/scripts/plugins.js
Date Wed, 23 Jan 2013 21:54:28 GMT
Author: steffkes
Date: Wed Jan 23 21:54:28 2013
New Revision: 1437767

URL: http://svn.apache.org/viewvc?rev=1437767&view=rev
Log:
SOLR-4341: Admin UI - Plugins/Stats Page contains loooong Values which result in horizontal
Scrollbar

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/webapp/web/js/scripts/plugins.js

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1437767&r1=1437766&r2=1437767&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Wed Jan 23 21:54:28 2013
@@ -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
 ----------------------
 

Modified: lucene/dev/trunk/solr/webapp/web/js/scripts/plugins.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/js/scripts/plugins.js?rev=1437767&r1=1437766&r2=1437767&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/js/scripts/plugins.js (original)
+++ lucene/dev/trunk/solr/webapp/web/js/scripts/plugins.js Wed Jan 23 21:54:28 2013
@@ -254,12 +254,8 @@ var render_plugin_data = function( plugi
 
           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";



Mime
View raw message