Guest User

Untitled

a guest
Jul 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ##I added this in a custom ajax.js file
  2.  
  3. jQuery(document).ready( function() {
  4. var j = jQuery;
  5. /*load initial content*/
  6. if ( j('div.classified3s').length ) {
  7. console.log('div found');
  8. bp_filter_request( j.cookie('bp-classified3s-type'), j.cookie('bp-classified3s-filter'), 'classified3s', 'div.classified3s', j.cookie('bp-classified3s-page'), j.cookie('bp-classified3s-search-terms') );
  9. }
  10.  
  11. The console.log('div found') is fired
  12.  
  13. But then the ajax query is not called
  14.  
  15. I added console.log("test"); in the core function bp_filter_request() and it's not fired...
  16.  
  17. function bp_filter_request( type, filter, id, target, page, search_terms ) {
  18.  
  19. console.log("test");
Add Comment
Please, Sign In to add comment