resources/assets/js/google_search.js
/**
     * Remove report query by id
     * @param reportQueryId
     */
Remove report query by id
@param reportQueryId
Remove report query by id @param reportQueryId
function removeReportQueryById(reportQueryId) {
        token = $('meta[name=csrf-token]').attr('content');
        var url = 'googleSearch/query/remove/' + reportQueryId;
        $.ajax({
            type: 'POST',
            url: '{{ '+url+' }}',
            data: { _token: token },
            success: function() {
                console.log('Report query has been deleted!');
            },
            error: function () {
                console.log('Failed to delete!');
            }
        });
    }
function removeReportQueryById ( reportQueryId ) { token = $ ( 'meta[name=csrf-token]' ) . attr ( 'content' ) ; var url = 'googleSearch/query/remove/' + reportQueryId ; $ . ajax ( { type : 'POST' , url : '{{ ' + url + ' }}' , data : { _token : token } , success : function ( ) { console . log ( 'Report query has been deleted!' ) ; } , error : function ( ) { console . log ( 'Failed to delete!' ) ; } } ) ; }
Remove report query by id
 @param reportQueryId
Remove report query by id @param reportQueryId