Problem/Motivation

Input Reset Does not work with ajax
The in_array function does not take into account for random string appended for ajax callbacks

Steps to reproduce

Create a block or page with ajax enabled.
The crossmark in input will be missing.

CommentFileSizeAuthor
#2 issue-with-ajax-3201151-2.patch4.19 KBjoshua1234511
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joshua1234511 created an issue. See original summary.

joshua1234511’s picture

Status: Active » Needs review
FileSize
4.19 KB

Added function stripos_array to handle wildcard id for ajax.
Js added with Drupal behaviors for ajax callbacks

joshua1234511’s picture

Priority: Normal » Major
izmeez’s picture

With patch in #3215362: Spelling mistake InputResetSettingForm applied had to manually apply this patch, or alternatively this patch can be applied first and the other patch modified.

The patch does not cause any problems with the working of the module. However, I have not setup a test to check the ajax.

izmeez’s picture

Marking this issue as related to #3194871: Not working for Multi-valued fields. Both issues include patches that appear to address the ajax issue while the patch in the other issue also addresses the issue of multi-valued fields. Not sure if the patch in the other issue should be separated into two separate issues or if this thread should be closed as a duplicate. I think they are two separate issues and might be better treated as such. I Would like to know what others think.