mirror of https://github.com/apache/lucene.git
SOLR-4949: UI Analysis page dropping characters from input box
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1495822 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
49d353bf61
commit
9dab69c257
|
@ -190,6 +190,8 @@ Bug Fixes
|
|||
|
||||
* SOLR-4456: Admin UI: Displays dashboard even if Solr is down (steffkes)
|
||||
|
||||
* SOLR-4949: UI Analysis page dropping characters from input box (steffkes)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ sammy.get
|
|||
{
|
||||
fields++;
|
||||
$( '[name="' + key + '"]', analysis_form )
|
||||
.val( context.params[key].replace( /\+/g, ' ' ) );
|
||||
.val( context.params[key] );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -250,7 +250,8 @@ sammy.get
|
|||
var params = $.param( compute_analysis_params() )
|
||||
.replace( /[\w\.]+=\+*(&)/g, '$1' ) // remove empty parameters
|
||||
.replace( /(&)+/, '$1' ) // reduce multiple ampersands
|
||||
.replace( /^&/, '' ); // remove leading ampersand
|
||||
.replace( /^&/, '' ) // remove leading ampersand
|
||||
.replace( /\+/, '%20' ); // replace plus-signs with encoded whitespaces
|
||||
|
||||
context.redirect( context.path.split( '?' ).shift() + '?' + params );
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue