SOLR-4340: Admin UI - Analysis's Button Spinner goes wild

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1437764 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Matheis 2013-01-23 21:52:28 +00:00
parent 4c723f6e46
commit 3347ec8c20
4 changed files with 8 additions and 6 deletions

View File

@ -77,6 +77,9 @@ Optimizations
* SOLR-4339: Admin UI - Display Field-Flags on Schema-Browser * SOLR-4339: Admin UI - Display Field-Flags on Schema-Browser
(steffkes) (steffkes)
* SOLR-4340: Admin UI - Analysis's Button Spinner goes wild
(steffkes)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -82,10 +82,9 @@
float: right; float: right;
} }
#content #analysis .settings button.loader #content #analysis .settings button span
{ {
background-position: 2px 50%; background-image: url( ../../img/ico/funnel.png );
padding-left: 21px;
} }
#content #analysis .settings .verbose_output #content #analysis .settings .verbose_output

View File

@ -269,7 +269,7 @@ sammy.get
dataType : 'json', dataType : 'json',
beforeSend : function( xhr, settings ) beforeSend : function( xhr, settings )
{ {
loader.show( button ); loader.show( $( 'span', button ) );
button.attr( 'disabled', true ); button.attr( 'disabled', true );
}, },
success : function( response, status_text, xhr, form ) success : function( response, status_text, xhr, form )
@ -325,7 +325,7 @@ sammy.get
}, },
complete : function() complete : function()
{ {
loader.hide( $( 'button', analysis_form ) ); loader.hide( $( 'span', button ) );
button.removeAttr( 'disabled' ); button.removeAttr( 'disabled' );
} }
} }

View File

@ -59,7 +59,7 @@ limitations under the License.
<div class="buttons clearfix"> <div class="buttons clearfix">
<button type="submit">Analyse Values</button> <button type="submit"><span>Analyse Values</span></button>
<div class="verbose_output active"> <div class="verbose_output active">
<a>Verbose Output</a> <a>Verbose Output</a>