first commit

This commit is contained in:
2024-07-15 12:33:27 +02:00
commit ce50ae282b
22084 changed files with 2623791 additions and 0 deletions

36
core/misc/tabledrag-ajax.js Executable file
View File

@@ -0,0 +1,36 @@
/**
* Ajax command for highlighting elements.
*
* @param {Drupal.Ajax} [ajax]
* An Ajax object.
* @param {object} response
* The Ajax response.
* @param {string} response.id
* The row id.
* @param {string} response.tabledrag_instance
* The tabledrag instance identifier.
* @param {number} [status]
* The HTTP status code.
*/
Drupal.AjaxCommands.prototype.tabledragChanged = function (
ajax,
response,
status,
) {
if (status !== 'success') {
return;
}
const tableDrag = Drupal.tableDrag[response.tabledrag_instance];
// eslint-disable-next-line new-cap
const rowObject = new tableDrag.row(
document.getElementById(response.id),
'',
tableDrag.indentEnabled,
tableDrag.maxDepth,
true,
);
rowObject.markChanged();
rowObject.addChangedWarning();
};