pace icon indicating copy to clipboard operation
pace copied to clipboard

ignoreurl not working

Open IT247PRO opened this issue 10 years ago • 2 comments

how we can ignore urls to one of my ajax call, i followed the following as mentioned in the documentation, i am trying to ignore a url 'getTip' but it still trigger the pace animation,
ajax: { trackMethods: ['GET', 'POST'], trackWebSockets: false, ignoreURLs: ['arterySignalR', 'browserLink', 'getTip'] }

or how can can i use the Pace.ignore in the following call

$( "a[name^='qtipname']" ).each(function(){ var $this = $(this); var id = $this.attr('rel'); $this.qtip({ content:{ text: 'Loading...', ajax:{ url: urlTip, type: 'GET', loading: false, data: {"objectID": id} } }, show: 'mouseover', // Show it on mouseover hide: { delay: 200, fixed: true // We'll let the user interact with it }, style: { classes: 'ui-tooltip-light ui-tooltip-shadow', width: 290 } });

IT247PRO avatar Dec 04 '14 04:12 IT247PRO

In pace.js put this around line 212, right after the line where Pace.options is initialized by extending the default options:

console.log(options);

When I did this, I saw keys for "ignoreURLS" and "ignoreURLs". I found in my code where I had used the wrong case & fixed it. Your capitalization looks correct, but have you tried to debug like this?

joshribakoff avatar Jun 07 '15 09:06 joshribakoff

For anyone that steps into this, after looking through the pace.js, found out ignoreURLs was moved into ajax object, so ignore urls for me are working like this

  window.paceOptions={
   ...
    ajax: {
      trackWebSockets: true,
      ignoreURLs: ["ignore_pace"]
    }
  };

SergioReis97 avatar Dec 12 '17 12:12 SergioReis97