b778339d446894325a93ab37535469d16928e278
[yaffs-website] / web / core / modules / system / tests / modules / js_ajax_test / js / js_ajax_test.ajax.js
1 /**
2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
5 * @preserve
6 **/
7
8 (function ($, Drupal) {
9   Drupal.AjaxCommands.prototype.jsAjaxTestCommand = function (ajax, response) {
10     var $domElement = $(response.selector);
11     ajax.element_settings.cat = 'catbro';
12
13     var data = {
14       element_settings: ajax.element_settings.cat || {},
15       elementSettings: ajax.elementSettings.cat || {}
16     };
17
18     $domElement.html('<div id="js_ajax_test_form_element">' + JSON.stringify(data) + '</div>');
19   };
20 })(jQuery, Drupal);