jQuery(document).ready(function() {
jQuery('.backupbuddy-do_bulk_action').click( function(){
thisForm = jQuery(this).closest('form');
if ( thisForm.find( '.check-all-entries:checked' ).length > 0 ) { // If any bulk action box is checked.
if ( ! confirm( 'Are you sure you want to do this to all selected items?' ) ) {
return false;
}
}
});
jQuery('.pb_debug_show').click(function(e) {
jQuery(this).hide();
jQuery(this).parent().children( '.pb_debug_hide').show();
jQuery(this).parent().css( 'float', 'left' );
jQuery(this).parent().css( 'width', '80%' );
jQuery(this).parent().children( 'div').show();
});
jQuery('.pb_debug_hide').click(function(e) {
jQuery(this).hide();
jQuery(this).parent().children( '.pb_debug_show').show();
jQuery(this).parent().css( 'float', 'right' );
jQuery(this).parent().css( 'width', '40px' );
jQuery(this).parent().children( 'div').hide();
});
jQuery('.pluginbuddy_tip').tooltip({
track: true,
delay: 0,
showURL: false,
showBody: " - ",
fade: 250
});
if (typeof jQuery.tableDnD !== 'undefined') { // If tableDnD function loaded.
jQuery('.pb_reorder').tableDnD({
onDrop: function(tbody, row) {
var new_order = new Array();
var rows = tbody.rows;
for (var i=0; i