Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- ['/reporting', 'reposting/formData', '/reporting/chart/monatlicheGesamtsummeChart', 'reporting/chart/reseller_id/gewünscht'].forEach(function(val,ind){
- var date = $("#datesFilter option:selected").val();
- var filter = $("#filter option:selected").val();
- $.ajax({
- type: "POST",
- url: val,
- data: {filtersDate:date, filter: filter, _token: $('input[name=_token]').val()} ,
- success: function(res){
- console.log('success');
- }
- }).done(function() {
- alert( "second success" );
- })
- .fail(function() {
- alert( "error" );
- })
- .always(function() {
- alert( "finished" );
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement