
| Current Path : /var/www/html/rocksensor/web/core/modules/system/tests/modules/tabledrag_test/js/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/core/modules/system/tests/modules/tabledrag_test/js/tabledrag_test.js |
/**
* @file
* Testing behaviors for tabledrag library.
*/
(function ($, Drupal) {
/**
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
* Removes a test class from the handle elements to allow verifying that
* dragging operations have been executed.
*/
Drupal.behaviors.tableDragTest = {
attach(context) {
$(once('tabledrag-test', '.tabledrag-handle', context)).on(
'keydown.tabledrag-test',
(event) => {
$(event.currentTarget).removeClass('tabledrag-test-dragging');
},
);
},
};
})(jQuery, Drupal);