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/04/12 09:41:36 UTC

svn commit: r1325148 - /lucene/dev/trunk/solr/webapp/web/js/scripts/cloud.js

Author: steffkes
Date: Thu Apr 12 07:41:36 2012
New Revision: 1325148

URL: http://svn.apache.org/viewvc?rev=1325148&view=rev
Log:
SOLR-3339: Use solr_path instead of core_basepath for Cloud-View

Modified:
    lucene/dev/trunk/solr/webapp/web/js/scripts/cloud.js

Modified: lucene/dev/trunk/solr/webapp/web/js/scripts/cloud.js
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/webapp/web/js/scripts/cloud.js?rev=1325148&r1=1325147&r2=1325148&view=diff
==============================================================================
--- lucene/dev/trunk/solr/webapp/web/js/scripts/cloud.js (original)
+++ lucene/dev/trunk/solr/webapp/web/js/scripts/cloud.js Thu Apr 12 07:41:36 2012
@@ -15,8 +15,6 @@
  limitations under the License.
 */
 
-var core_basepath = null;
-
 var init_debug = function( cloud_element )
 {
   var debug_element = $( '#debug', cloud_element );
@@ -73,7 +71,7 @@ var init_debug = function( cloud_element
         $.ajax
         (
           {
-            url : core_basepath + '/zookeeper?wt=json&dump=true',
+            url : app.config.solr_path + '/zookeeper?wt=json&dump=true',
             dataType : 'text',
             context : debug_element,
             beforeSend : function( xhr, settings )
@@ -243,7 +241,7 @@ var init_graph = function( graph_element
   $.ajax
   (
     {
-      url : core_basepath + '/zookeeper?wt=json&detail=true&path=%2Fclusterstate.json',
+      url : app.config.solr_path + '/zookeeper?wt=json&detail=true&path=%2Fclusterstate.json',
       dataType : 'json',
       context : graph_element,
       beforeSend : function( xhr, settings )
@@ -318,7 +316,7 @@ var init_tree = function( tree_element )
   $.ajax
   (
     {
-      url : core_basepath + '/zookeeper?wt=json',
+      url : app.config.solr_path + '/zookeeper?wt=json',
       dataType : 'json',
       context : tree_element,
       beforeSend : function( xhr, settings )
@@ -494,7 +492,6 @@ sammy.get
   /^#\/~(cloud)$/,
   function( context )
   {
-    core_basepath = $( 'li[data-basepath]', app.menu_element ).attr( 'data-basepath' );
     var content_element = $( '#content' );
 
     $.get