If used on a view with an exposed ajax filter that returns no results, when the filter is changed so that results appear the editablefields don't look as normal and the autosubmit doesn't work.

This is because the editablefields library wasn't included on the initial page load (with no results).

Potential fix:
editablefields.module

/**
 * Implements hook_views_pre_render().
 */
function editablefields_views_pre_render(&$view) {
  foreach ($view->field as $field) {
    if (isset($field->options['type']) && $field->options['type'] == 'editable') {
      drupal_add_library('editablefields', 'editablefields');
      break;
    }
  }
}

Comments

MustangGB created an issue. See original summary.

aaronbauman’s picture

Version: 7.x-1.x-dev » 1.0.x-dev

issue persists to latest version

aaronbauman’s picture

Title: Views exposed ajax filter compatibility » Views exposed filter compatibility
Priority: Normal » Major

This is not limited to ajax-enabled views.

Editable Fields stops working altogether after an exposed filter is submitted.

aaronbauman’s picture

Status: Needs work » Closed (duplicate)
Parent issue: » #3381413: Ajax 404 Error

Closing as duplicate of #3381413: Ajax 404 Error

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.