SOLR-3788: Admin Cores UI should redirect to newly created core details

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1389984 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2012-09-25 16:52:45 +00:00
parent 096eef9cde
commit 62caa1d692
2 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,9 @@ New Features
Optimizations Optimizations
---------------------- ----------------------
* SOLR-3788: Admin Cores UI should redirect to newly created core details
(steffkes)
Bug Fixes Bug Fixes
---------------------- ----------------------

View File

@ -326,6 +326,12 @@ sammy.get
var form_callback = { var form_callback = {
create : function( form, response )
{
var url = path_parts[1] + response.core;
context.redirect( url );
},
rename : function( form, response ) rename : function( form, response )
{ {
var url = path_parts[1] + $( 'input[name="other"]', form ).val(); var url = path_parts[1] + $( 'input[name="other"]', form ).val();