Clean up spaces, tabs, indentation, and bracket formatting

This commit is contained in:
Brian Miyaji
2021-11-10 15:41:40 +09:00
parent e58beb1201
commit 3dff686a00
285 changed files with 29638 additions and 24147 deletions

View File

@@ -1,37 +1,52 @@
jQuery(document).ready(function($){
jQuery( document ).ready(
function($){
// Icon picker
$('.sp-icons input').on('change', function() {
if ('' == $(this).val()) {
$('.sp-custom-colors').hide();
$('.sp-custom-thumbnail').show();
} else {
$('.sp-custom-thumbnail').hide();
$('.sp-custom-colors').show();
}
});
// Icon picker
$( '.sp-icons input' ).on(
'change',
function() {
if ('' == $( this ).val()) {
$( '.sp-custom-colors' ).hide();
$( '.sp-custom-thumbnail' ).show();
} else {
$( '.sp-custom-thumbnail' ).hide();
$( '.sp-custom-colors' ).show();
}
}
);
// Color picker
$('.colorpick').iris( {
change: function(event, ui){
$(this).css( { backgroundColor: ui.color.toString() } );
},
hide: true,
border: true
} ).each( function() {
$(this).css( { backgroundColor: $(this).val() } );
})
.click(function(){
$('.iris-picker').hide();
$(this).closest('.sp-color-box-for-icon, td').find('.iris-picker').show();
});
// Color picker
$( '.colorpick' ).iris(
{
change: function(event, ui){
$( this ).css( { backgroundColor: ui.color.toString() } );
},
hide: true,
border: true
}
).each(
function() {
$( this ).css( { backgroundColor: $( this ).val() } );
}
)
.click(
function(){
$( '.iris-picker' ).hide();
$( this ).closest( '.sp-color-box-for-icon, td' ).find( '.iris-picker' ).show();
}
);
$('body').click(function() {
$('.iris-picker').hide();
});
$( 'body' ).click(
function() {
$( '.iris-picker' ).hide();
}
);
$('.sp-color-box-for-icon, .colorpick').click(function(event){
event.stopPropagation();
});
$( '.sp-color-box-for-icon, .colorpick' ).click(
function(event){
event.stopPropagation();
}
);
});
}
);