mirror of https://github.com/apache/lucene.git
SOLR-3876: Solr Admin UI is completely dysfunctional on IE 9
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1430586 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3fec9b737
commit
2f3435acce
|
@ -495,6 +495,8 @@ Bug Fixes
|
||||||
* SOLR-4170: The 'backup' ReplicationHandler command can sometimes use a stale
|
* SOLR-4170: The 'backup' ReplicationHandler command can sometimes use a stale
|
||||||
index directory rather than the current one. (Mark Miller, Marcin Rzewuck)
|
index directory rather than the current one. (Mark Miller, Marcin Rzewuck)
|
||||||
|
|
||||||
|
* SOLR-3876: Solr Admin UI is completely dysfunctional on IE 9 (steffkes)
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
@ -15,13 +15,15 @@
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if( 'undefined' === typeof( console ) )
|
window.console = window.console || {};
|
||||||
|
|
||||||
|
var names = ["log", "debug", "info", "warn", "error",
|
||||||
|
"assert", "dir", "dirxml", "group", "groupEnd", "time",
|
||||||
|
"timeEnd", "count", "trace", "profile", "profileEnd"];
|
||||||
|
|
||||||
|
var i = 0;
|
||||||
|
var l = names.length;
|
||||||
|
for( i = 0; i < l; i++ )
|
||||||
{
|
{
|
||||||
var console = {
|
window.console[names[i]] = window.console[names[i]] || function() {};
|
||||||
log : function() {},
|
}
|
||||||
debug : function() {},
|
|
||||||
dump : function() {},
|
|
||||||
error : function() {},
|
|
||||||
warn : function(){}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
|
@ -131,7 +131,7 @@ var sammy = $.sammy
|
||||||
|
|
||||||
var solr_admin = function( app_config )
|
var solr_admin = function( app_config )
|
||||||
{
|
{
|
||||||
self = this,
|
that = this,
|
||||||
|
|
||||||
menu_element = null,
|
menu_element = null,
|
||||||
|
|
||||||
|
@ -196,13 +196,13 @@ var solr_admin = function( app_config )
|
||||||
|
|
||||||
this.set_cores_data = function set_cores_data( cores )
|
this.set_cores_data = function set_cores_data( cores )
|
||||||
{
|
{
|
||||||
self.cores_data = sort_cores_data( cores.status );
|
that.cores_data = sort_cores_data( cores.status );
|
||||||
|
|
||||||
self.menu_element
|
that.menu_element
|
||||||
.empty();
|
.empty();
|
||||||
|
|
||||||
var core_count = 0;
|
var core_count = 0;
|
||||||
for( var core_name in self.cores_data )
|
for( var core_name in that.cores_data )
|
||||||
{
|
{
|
||||||
core_count++;
|
core_count++;
|
||||||
var core_path = config.solr_path + '/' + core_name;
|
var core_path = config.solr_path + '/' + core_name;
|
||||||
|
@ -240,7 +240,7 @@ var solr_admin = function( app_config )
|
||||||
+ ' </ul>' + "\n"
|
+ ' </ul>' + "\n"
|
||||||
+ '</li>';
|
+ '</li>';
|
||||||
|
|
||||||
self.menu_element
|
that.menu_element
|
||||||
.append( core_tpl );
|
.append( core_tpl );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ var solr_admin = function( app_config )
|
||||||
},
|
},
|
||||||
success : function( response )
|
success : function( response )
|
||||||
{
|
{
|
||||||
self.set_cores_data( response );
|
that.set_cores_data( response );
|
||||||
|
|
||||||
for( var core_name in response.status )
|
for( var core_name in response.status )
|
||||||
{
|
{
|
||||||
|
@ -312,7 +312,7 @@ var solr_admin = function( app_config )
|
||||||
},
|
},
|
||||||
success : function( response )
|
success : function( response )
|
||||||
{
|
{
|
||||||
self.dashboard_values = response;
|
that.dashboard_values = response;
|
||||||
|
|
||||||
var environment_args = null;
|
var environment_args = null;
|
||||||
var cloud_args = null;
|
var cloud_args = null;
|
||||||
|
|
|
@ -436,7 +436,7 @@ var prepare_graph = function( graph_element, callback )
|
||||||
var shard = {
|
var shard = {
|
||||||
name: s,
|
name: s,
|
||||||
data: {
|
data: {
|
||||||
type : 'shard',
|
type : 'shard'
|
||||||
},
|
},
|
||||||
children: nodes
|
children: nodes
|
||||||
};
|
};
|
||||||
|
@ -446,7 +446,7 @@ var prepare_graph = function( graph_element, callback )
|
||||||
var collection = {
|
var collection = {
|
||||||
name: c,
|
name: c,
|
||||||
data: {
|
data: {
|
||||||
type : 'collection',
|
type : 'collection'
|
||||||
},
|
},
|
||||||
children: shards
|
children: shards
|
||||||
};
|
};
|
||||||
|
|
|
@ -287,7 +287,7 @@ var render_plugin_data = function( plugin_data, plugin_sort, types )
|
||||||
var txt = $(this).html();
|
var txt = $(this).html();
|
||||||
if(txt.indexOf("http") >= 0) {
|
if(txt.indexOf("http") >= 0) {
|
||||||
$(this).linker({
|
$(this).linker({
|
||||||
className : 'linker',
|
className : 'linker'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -423,4 +423,4 @@ sammy.get
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue