1function wpbc_pay_via_ideal( booking_resource_id ){ 2 3 // Get Values 4 var wpbc_ideal_obj = { 5 'payment' : jQuery( '#ideal_' + booking_resource_id + ' select[name="ideal_payment"]' ).find( ':selected' ).val() 6 , 'issuerid' : jQuery( '#ideal_' + booking_resource_id + ' select[name="ideal_issuerid"]' ).find( ':selected' ).val() 7 , 'purchaseid' : jQuery( '#ideal_' + booking_resource_id + ' input[name="purchaseid"]' ).val() 8 , 'description' : jQuery( '#ideal_' + booking_resource_id + ' input[name="description"]' ).val() 9 , 'amount' : jQuery( '#ideal_' + booking_resource_id + ' input[name="amount"]' ).val() 10 , 'ideal_nonce' : jQuery( '#ideal_' + booking_resource_id + ' input[name="ideal_nonce"]' ).val() 11 }; 12 13 jQuery( '#ideal_' + booking_resource_id + ' .wpbc_ideal_payment_table').html( '<span class="glyphicon glyphicon-refresh wpbc_spin"></span>   Processing...' ); // '<div style="height:20px;width:100%;text-align:center;margin:15px auto;">Loading ... <img style="vertical-align:middle;box-shadow:none;width:14px;" src="'+wpdev_bk_plugin_url+'/assets/img/ajax-loader.gif"><//div>' 14 15// console.log( wpbc_ideal_obj ); 16 17 jQuery.ajax({ 18 url: wpbc_ajaxurl, 19 type:'POST', 20 success: function ( data, textStatus ){ // Note, here we direct show HTML to TimeLine frame 21 if( textStatus == 'success') { 22 jQuery( '#ideal_' + booking_resource_id + ' .wpbc_ideal_ajax_response' ).html( data ); 23 return true; 24 } 25 }, 26 error: function ( XMLHttpRequest, textStatus, errorThrown){ 27 console.log( 'Ajax Error! Status: ' + textStatus ); 28 alert( 'Ajax Error! Status: ' + XMLHttpRequest.status + ' ' + XMLHttpRequest.statusText ); 29 }, 30 // beforeSend: someFunction, 31 data:{ 32 action: 'WPBC_PAY_VIA_iDEAL', 33 ideal_obj: wpbc_ideal_obj, 34 wpdev_active_locale:wpbc_active_locale, 35 wpbc_nonce: document.getElementById('wpbc_nonce_' + 'ideal_' + booking_resource_id ).value 36 } 37 }); 38 39}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.