File "colorpicker.js"
Full Path: /home/londdqdw/public_html/06/wp-content/plugins/sportspress/assets/js/admin/colorpicker.js
File size: 658 bytes
MIME-type: text/plain
Charset: utf-8
jQuery( document ).ready(
function($){
// 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, td' ).find( '.iris-picker' ).show();
}
);
$( 'body' ).click(
function() {
$( '.iris-picker' ).hide();
}
);
$( '.sp-color-box, .colorpick' ).click(
function(event){
event.stopPropagation();
}
);
}
);