Minor fixes to icon page preview

This commit is contained in:
Andrew Gioia 2017-05-03 13:10:25 -04:00
parent ecda23ec53
commit 484d66fb4f

View File

@ -784,7 +784,7 @@
$( '#iconPreview i' ).removeClass().addClass( 'ss ss-fw ss-common ss-'+icon ); $( '#iconPreview i' ).removeClass().addClass( 'ss ss-fw ss-common ss-'+icon );
$( '#setName' ).html( name ); $( '#setName' ).html( name );
$( '#setCode' ).html( '('+icon+')' ); $( '#setCode' ).html( '('+icon+')' );
$( '#metaInfo .html span' ).html( '.ss-'+icon ); $( '#metaInfo .html span' ).html( 'ss-'+icon );
$( '#metaInfo .class span' ).html( classname ); $( '#metaInfo .class span' ).html( classname );
$( '#metaInfo .unicode span' ).html( unicode ); $( '#metaInfo .unicode span' ).html( unicode );
$( '#metaInfo .added span' ).html( added ); $( '#metaInfo .added span' ).html( added );
@ -816,6 +816,8 @@
$( '#closeModal' ).on( 'click', function( e ) { $( '#closeModal' ).on( 'click', function( e ) {
$( '#overlay' ).hide(); $( '#overlay' ).hide();
$( '#toggleGradient' ).prop( 'checked', false ); $( '#toggleGradient' ).prop( 'checked', false );
$( '#toggleRarity a.active' ).removeClass( 'active' );
$( '#toggleRarity a[data-rarity="common"]' ).addClass( 'active' );
$( '#modal' ).hide(); $( '#modal' ).hide();
}); });