You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by st...@apache.org on 2012/09/25 18:52:46 UTC
svn commit: r1389984 - in /lucene/dev/trunk/solr: CHANGES.txt
webapp/web/js/scripts/cores.js
Author: steffkes
Date: Tue Sep 25 16:52:45 2012
New Revision: 1389984
URL: http://svn.apache.org/viewvc?rev=1389984&view=rev
Log:
SOLR-3788: Admin Cores UI should redirect to newly created core details
Modified:
lucene/dev/trunk/solr/CHANGES.txt
lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js
Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1389984&r1=1389983&r2=1389984&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Tue Sep 25 16:52:45 2012
@@ -41,6 +41,9 @@ New Features
Optimizations
----------------------
+* SOLR-3788: Admin Cores UI should redirect to newly created core details
+ (steffkes)
+
Bug Fixes
----------------------
Modified: lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js?rev=1389984&r1=1389983&r2=1389984&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js (original)
+++ lucene/dev/trunk/solr/webapp/web/js/scripts/cores.js Tue Sep 25 16:52:45 2012
@@ -326,6 +326,12 @@ sammy.get
var form_callback = {
+ create : function( form, response )
+ {
+ var url = path_parts[1] + response.core;
+ context.redirect( url );
+ },
+
rename : function( form, response )
{
var url = path_parts[1] + $( 'input[name="other"]', form ).val();