Fix tooltips JSHint error

This commit is contained in:
Shiva Poudel 2015-05-02 22:19:14 +05:45
parent 2953c99440
commit 0074777d92
1 changed files with 7 additions and 7 deletions

View File

@ -83,16 +83,16 @@ jQuery( function ( $ ) {
// Tooltips
var tiptip_args = {
'attribute' : 'data-tip',
'fadeIn' : 50,
'fadeOut' : 50,
'delay' : 200
'attribute': 'data-tip',
'fadeIn': 50,
'fadeOut': 50,
'delay': 200
};
$(".tips, .help_tip").tipTip( tiptip_args );
$( '.tips, .help_tip' ).tipTip( tiptip_args );
// Add tiptip to parent element for widefat tables
$(".parent-tips").each(function(){
$(this).closest( 'a, th' ).attr( 'data-tip', $(this).data( 'tip' ) ).tipTip( tiptip_args ).css( 'cursor', 'help' );
$( '.parent-tips' ).each( function() {
$( this ).closest( 'a, th' ).attr( 'data-tip', $( this ).data( 'tip' ) ).tipTip( tiptip_args ).css( 'cursor', 'help' );
});
// wc_input_table tables