Skip to content
Snippets Groups Projects

Finish the flow for IEF with new option in the autocomplete

Merged Cassio Almeida requested to merge feature/ief-flow into 1.0.x
1 unresolved thread

This MR created two new configurations for the IEF Complex flow. Also, it changes the JS in order to create a flow where the user don't need to click at "Add existing" or "Cancel"

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 43 58 */
    44 59 Drupal.behaviors.ErwIef = {
    45 60 attach: function (context, settings) {
    46
    47 61 // Adds a 'Create new item' option to the autocomplete.
    48 var $autocomplete = $(context).find('input.form-autocomplete').once('erw-autocomplete');
    62 let $autocomplete = $(context).find('input.form-autocomplete').once('erw-autocomplete');
    49 63 if ($autocomplete.length) {
    50 var createText = Drupal.t('Create New Item');
    64 let createText = Drupal.t(drupalSettings.entity_reference_widgets.erw_new_item_text);
  • Cassio Almeida added 2 commits

    added 2 commits

    • 8d4a9767 - Changed to ES5 and small improvements.
    • e22a13fe - Fix some selectors and update strings

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading