function confirmAction (message, callback, title, confirmButtonTitle)
{
  if (!title) title = 'TimeCard';

  //Set the title and message
  $('#confirmationTitle').html(title);
  $('#confirmationMessage').html(message);

  if (confirmButtonTitle) {
    $('.inptsbt', '#actionConfirmation').val(confirmButtonTitle);
  }

  $('.inptsbt', '#actionConfirmation').click(function () {
    $('#actionConfirmation').hide();
    callback();
  });

  //Dsiplay overlay
  $('#actionConfirmation').show();

  //Position the overlay
  $(".trndvds").css({left:($(window).width()-$(".trndvds").width())/2});
}
/**
 * Shows a confirmation overlay with title @title and message @message
 * callback will be called if the user presses 'Ok'
 */
Shows a confirmation overlay with title @title and message @message
callback will be called if the user presses 'Ok'
Shows a confirmation overlay with title @title and message @message callback will be called if the user presses ' Ok '
function confirmAction (message, callback, title, confirmButtonTitle)
{
  if (!title) title = 'TimeCard';
  $('#confirmationTitle').html(title);
  $('#confirmationMessage').html(message);
  if (confirmButtonTitle) {
    $('.inptsbt', '#actionConfirmation').val(confirmButtonTitle);
  }
  $('.inptsbt', '#actionConfirmation').click(function () {
    $('#actionConfirmation').hide();
    callback();
  });
  $('#actionConfirmation').show();
  $(".trndvds").css({left:($(window).width()-$(".trndvds").width())/2});
}
function confirmAction ( message , callback , title , confirmButtonTitle ) { if ( ! title ) title = 'TimeCard' ; $ ( '#confirmationTitle' ) . html ( title ) ; $ ( '#confirmationMessage' ) . html ( message ) ; if ( confirmButtonTitle ) { $ ( '.inptsbt' , '#actionConfirmation' ) . val ( confirmButtonTitle ) ; } $ ( '.inptsbt' , '#actionConfirmation' ) . click ( function ( ) { $ ( '#actionConfirmation' ) . hide ( ) ; callback ( ) ; } ) ; $ ( '#actionConfirmation' ) . show ( ) ; $ ( ".trndvds" ) . css ( { left : ( $ ( window ) . width ( ) - $ ( ".trndvds" ) . width ( ) ) / 2 } ) ; }
Shows a confirmation overlay with title @title and message @message
 callback will be called if the user presses 'Ok'
Shows a confirmation overlay with title @title and message @message callback will be called if the user presses ' Ok '
//Set the title and message //Dsiplay overlay //Position the overlay