// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
var showRelevantPaymentFieldsFor = function(option) {
	switch(option) {
		case "visa":
		case "master_card":
		case "amex":
			$('card_type_check').hide();
			$('card_type_credit_card').show();
			break;
		case "check":
			$('card_type_credit_card').hide();
			$('card_type_check').show();
			break;
			
	}
}

$(document).ready(function(){
  $('.dataTable').dataTable({"sPaginationType": "full_numbers", "bStateSave": true});
  $('.dataTableDesc').dataTable({"sPaginationType": "full_numbers", "aaSorting": [[ 0, "desc" ]], "bStateSave": true});
  $('.dataTableWithoutSearch').dataTable({"bFilter": false, "sPaginationType": "full_numbers", "bStateSave": true});
});