SOLR-8140: Remove unfinished admin-extra

Includes UI element and never-implemented commented-out code
This commit is contained in:
Alexandre Rafalovitch 2016-10-03 17:37:31 +07:00
parent 6f6bb08782
commit 9f187eceae
4 changed files with 3 additions and 107 deletions

View File

@ -236,6 +236,8 @@ Other Changes
* SOLR-9588: Remove Guava dependency from SolrJ (Ishan Chattopadhyaya, noble)
* SOLR-8140: Remove mentions of unimplemented admin-extra from the new Admin UI
================== 6.2.1 ==================
Bug Fixes

View File

@ -123,11 +123,6 @@ limitations under the License.
margin-top: 10px;
}
#content #dashboard #admin-extra
{
float: left;
}
#content #dashboard #healthcheck
{
float: right;
@ -152,7 +147,6 @@ limitations under the License.
#content #dashboard #replication.master h2 { background-image: url( ../../img/ico/node-master.png ); }
#content #dashboard #replication.slave h2 { background-image: url( ../../img/ico/node-slave.png ); }
#content #dashboard #instance h2 { background-image: url( ../../img/ico/server.png ); }
#content #dashboard #admin-extra h2 { background-image: url( ../../img/ico/plus-button.png ); }
#content #dashboard #collection h2 { background-image: url( ../../img/ico/book-open-text.png ); }
#content #dashboard #shards h2 { background-image: url( ../../img/ico/documents-stack.png ); }
@ -182,4 +176,4 @@ limitations under the License.
#dashboard #shards .shard .replica.odd {
background-color: #fff;
}
}

View File

@ -139,86 +139,3 @@ function($scope, $rootScope, $routeParams, Luke, CoreSystem, Update, Replication
$scope.refresh();
});
/*******
// @todo admin-extra
var core_basepath = this.active_core.attr( 'data-basepath' );
var content_element = $( '#content' );
content_element
.removeClass( 'single' );
if( !app.core_menu.data( 'admin-extra-loaded' ) )
{
app.core_menu.data( 'admin-extra-loaded', new Date() );
$.get
(
core_basepath + '/admin/file/?file=admin-extra.menu-top.html&contentType=text/html;charset=utf-8',
function( menu_extra )
{
app.core_menu
.prepend( menu_extra );
}
);
$.get
(
core_basepath + '/admin/file/?file=admin-extra.menu-bottom.html&contentType=text/html;charset=utf-8',
function( menu_extra )
{
app.core_menu
.append( menu_extra );
}
);
}
////////////////////////////////// ADMIN EXTRA
$.ajax
(
{
url : core_basepath + '/admin/file/?file=admin-extra.html',
dataType : 'html',
context : $( '#admin-extra', dashboard_element ),
beforeSend : function( xhr, settings )
{
$( 'h2', this )
.addClass( 'loader' );
$( '.message', this )
.show()
.html( 'Loading' );
$( '.content', this )
.hide();
},
success : function( response, text_status, xhr )
{
$( '.message', this )
.hide()
.empty();
$( '.content', this )
.show()
.html( response );
},
error : function( xhr, text_status, error_thrown)
{
this
.addClass( 'disabled' );
$( '.message', this )
.show()
.html( 'We found no "admin-extra.html" file.' );
},
complete : function( xhr, text_status )
{
$( 'h2', this )
.removeClass( 'loader' );
}
}
);
***/

View File

@ -205,23 +205,6 @@ limitations under the License.
</div>
</div>
<div class="clearfix">
<div class="block" id="admin-extra">
<h2><span>Admin Extra</span></h2>
<div class="message-container">
<div class="message"></div>
</div>
<div class="content">
</div>
</div>
</div>
</div>