Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
novicell/content_hierarchy / js / contentHierarchyModal.js
Size: Mime:
Drupal.behaviors.contentHierarchyModal = {
  attach: function (context, settings) {
    jQuery('#edit-langcode-wrapper select', context).change(function() {
      let langcode = jQuery('#edit-langcode-wrapper select').val();
      let contentId = jQuery('.content-hierarchy-modal__widget').data('content-id');
      let endpoint = '/admin/content/hierarchy/ajax/modal/update/' + langcode + '/' + contentId;
      Drupal.ajax({url: endpoint}).execute();
    });
  }
};