SOLR-4371: Admin UI - Analysis Screen shows empty result

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1456521 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2013-03-14 16:40:37 +00:00
parent 412a233f5b
commit 07dd466743
2 changed files with 7 additions and 2 deletions

View File

@ -87,6 +87,8 @@ Bug Fixes
* SOLR-4543: setting shardHandlerFactory in solr.xml/solr.properties does not work. * SOLR-4543: setting shardHandlerFactory in solr.xml/solr.properties does not work.
(Ryan Ernst, Robert Muir via Erick Ericson) (Ryan Ernst, Robert Muir via Erick Ericson)
* SOLR-4371: Admin UI - Analysis Screen shows empty result (steffkes)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -247,9 +247,12 @@ sammy.get
'submit', 'submit',
function( event ) function( event )
{ {
var params = compute_analysis_params(); var params = $.param( compute_analysis_params() )
.replace( /[\w\.]+=\+*(&)/g, '$1' ) // remove empty parameters
.replace( /(&)+/, '$1' ) // reduce multiple ampersands
.replace( /^&/, '' ); // remove leading ampersand
context.redirect( context.path.split( '?' ).shift() + '?' + $.param( params ) ); context.redirect( context.path.split( '?' ).shift() + '?' + params );
return false; return false;
} }
) )