mirror of https://github.com/apache/lucene.git
SOLR-2814: fix admin UI for corenames with a dash
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1182555 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9ba4ce2ed5
commit
ed19804a96
|
@ -1091,7 +1091,7 @@ var sammy = $.sammy
|
||||||
// #/:core/replication
|
// #/:core/replication
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(replication)$/,
|
/^#\/([\w\d-]+)\/(replication)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var core_basepath = this.active_core.attr( 'data-basepath' );
|
var core_basepath = this.active_core.attr( 'data-basepath' );
|
||||||
|
@ -2041,7 +2041,7 @@ var sammy = $.sammy
|
||||||
// #/:core/schema-browser
|
// #/:core/schema-browser
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(schema-browser)$/,
|
/^#\/([\w\d-]+)\/(schema-browser)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var callback = function( schema_browser_data, data_element )
|
var callback = function( schema_browser_data, data_element )
|
||||||
|
@ -2066,7 +2066,7 @@ var sammy = $.sammy
|
||||||
// #/:core/schema-browser/field|dynamic-field|type/$field
|
// #/:core/schema-browser/field|dynamic-field|type/$field
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(schema-browser)(\/(field|dynamic-field|type)\/(.+))$/,
|
/^#\/([\w\d-]+)\/(schema-browser)(\/(field|dynamic-field|type)\/(.+))$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var callback = function( schema_browser_data, data_element )
|
var callback = function( schema_browser_data, data_element )
|
||||||
|
@ -2581,7 +2581,7 @@ var sammy = $.sammy
|
||||||
// #/:core/dataimport
|
// #/:core/dataimport
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(dataimport)$/,
|
/^#\/([\w\d-]+)\/(dataimport)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
sammy.trigger
|
sammy.trigger
|
||||||
|
@ -2609,7 +2609,7 @@ var sammy = $.sammy
|
||||||
// #/:core/dataimport
|
// #/:core/dataimport
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(dataimport)\//,
|
/^#\/([\w\d-]+)\/(dataimport)\//,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var core_basepath = this.active_core.attr( 'data-basepath' );
|
var core_basepath = this.active_core.attr( 'data-basepath' );
|
||||||
|
@ -3104,7 +3104,7 @@ var sammy = $.sammy
|
||||||
// #/:core/plugins/$type
|
// #/:core/plugins/$type
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(plugins)\/(\w+)$/,
|
/^#\/([\w\d-]+)\/(plugins)\/(\w+)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var content_element = $( '#content' );
|
var content_element = $( '#content' );
|
||||||
|
@ -3234,7 +3234,7 @@ var sammy = $.sammy
|
||||||
// #/:core/plugins
|
// #/:core/plugins
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(plugins)$/,
|
/^#\/([\w\d-]+)\/(plugins)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
delete app.plugin_data;
|
delete app.plugin_data;
|
||||||
|
@ -3256,7 +3256,7 @@ var sammy = $.sammy
|
||||||
// #/:core/query
|
// #/:core/query
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(query)$/,
|
/^#\/([\w\d-]+)\/(query)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var core_basepath = this.active_core.attr( 'data-basepath' );
|
var core_basepath = this.active_core.attr( 'data-basepath' );
|
||||||
|
@ -3398,7 +3398,7 @@ var sammy = $.sammy
|
||||||
// #/:core/analysis
|
// #/:core/analysis
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(analysis)$/,
|
/^#\/([\w\d-]+)\/(analysis)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var core_basepath = this.active_core.attr( 'data-basepath' );
|
var core_basepath = this.active_core.attr( 'data-basepath' );
|
||||||
|
@ -3784,7 +3784,7 @@ var sammy = $.sammy
|
||||||
// #/:core/schema, #/:core/config
|
// #/:core/schema, #/:core/config
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)\/(schema|config)$/,
|
/^#\/([\w\d-]+)\/(schema|config)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var core_basepath = this.active_core.attr( 'data-basepath' );
|
var core_basepath = this.active_core.attr( 'data-basepath' );
|
||||||
|
@ -3822,7 +3822,7 @@ var sammy = $.sammy
|
||||||
// #/:core
|
// #/:core
|
||||||
this.get
|
this.get
|
||||||
(
|
(
|
||||||
/^#\/([\w\d]+)$/,
|
/^#\/([\w\d-]+)$/,
|
||||||
function( context )
|
function( context )
|
||||||
{
|
{
|
||||||
var core_basepath = this.active_core.attr( 'data-basepath' );
|
var core_basepath = this.active_core.attr( 'data-basepath' );
|
||||||
|
|
Loading…
Reference in New Issue