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:54:03 UTC

svn commit: r1389985 - in /lucene/dev/branches/branch_4x/solr: CHANGES.txt webapp/web/js/scripts/cores.js

Author: steffkes
Date: Tue Sep 25 16:54:03 2012
New Revision: 1389985

URL: http://svn.apache.org/viewvc?rev=1389985&view=rev
Log:
SOLR-3788: Admin Cores UI should redirect to newly created core details (merge r1389984)

Modified:
    lucene/dev/branches/branch_4x/solr/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/cores.js

Modified: lucene/dev/branches/branch_4x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/CHANGES.txt?rev=1389985&r1=1389984&r2=1389985&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_4x/solr/CHANGES.txt Tue Sep 25 16:54:03 2012
@@ -37,6 +37,9 @@ New Features
 Optimizations
 ----------------------
 
+* SOLR-3788: Admin Cores UI should redirect to newly created core details
+  (steffkes)
+
 Bug Fixes
 ----------------------
 

Modified: lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/cores.js
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/cores.js?rev=1389985&r1=1389984&r2=1389985&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/cores.js (original)
+++ lucene/dev/branches/branch_4x/solr/webapp/web/js/scripts/cores.js Tue Sep 25 16:54:03 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();