I wanted to allow the AJAX throbber on the view, but didn't want it to appear each time the auto refresh was running. I added this code into the js file after the variable definitions. (line 9 or so).

// hides the throbber on refresh for views that use autorefresh
for(var i in Drupal.views.instances) {
  let view_set = Drupal.views.instances[i].settings;
  if(view_set.view_name == view_name && view_set.view_display_id == view_display) {
    if(Drupal.views.instances[i].hasOwnProperty('refreshViewAjax')) {
      Drupal.views.instances[i].refreshViewAjax.progress = {type: 'none'};
    }
  }
}

There could be a setting for this in the header area plugin to allow changing the throbber and have 'none' as one of the options. This is only used during the auto refresh. I think at least a checkbox to turn this feature on and off would be nice. I just have it on all the time, but probably should have a way to control this per view.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

DustinYoder created an issue. See original summary.

mably made their first commit to this issue’s fork.

  • mably committed 3f652983 on 2.x
    Issue #3452490 by mably: Disable throbber on view only when auto refresh
    
mably’s picture

Version: 1.0.2 » 2.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.