SOLR-3339: Use solr_path instead of core_basepath for Cloud-View

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1325148 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2012-04-12 07:41:36 +00:00
parent 2de3c452c2
commit e166ebdd2c
1 changed files with 3 additions and 6 deletions

View File

@ -15,8 +15,6 @@
limitations under the License. limitations under the License.
*/ */
var core_basepath = null;
var init_debug = function( cloud_element ) var init_debug = function( cloud_element )
{ {
var debug_element = $( '#debug', cloud_element ); var debug_element = $( '#debug', cloud_element );
@ -73,7 +71,7 @@ var init_debug = function( cloud_element )
$.ajax $.ajax
( (
{ {
url : core_basepath + '/zookeeper?wt=json&dump=true', url : app.config.solr_path + '/zookeeper?wt=json&dump=true',
dataType : 'text', dataType : 'text',
context : debug_element, context : debug_element,
beforeSend : function( xhr, settings ) beforeSend : function( xhr, settings )
@ -243,7 +241,7 @@ var init_graph = function( graph_element )
$.ajax $.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', dataType : 'json',
context : graph_element, context : graph_element,
beforeSend : function( xhr, settings ) beforeSend : function( xhr, settings )
@ -318,7 +316,7 @@ var init_tree = function( tree_element )
$.ajax $.ajax
( (
{ {
url : core_basepath + '/zookeeper?wt=json', url : app.config.solr_path + '/zookeeper?wt=json',
dataType : 'json', dataType : 'json',
context : tree_element, context : tree_element,
beforeSend : function( xhr, settings ) beforeSend : function( xhr, settings )
@ -494,7 +492,6 @@ sammy.get
/^#\/~(cloud)$/, /^#\/~(cloud)$/,
function( context ) function( context )
{ {
core_basepath = $( 'li[data-basepath]', app.menu_element ).attr( 'data-basepath' );
var content_element = $( '#content' ); var content_element = $( '#content' );
$.get $.get