updated to use drupal once function instead of jquery once

This commit is contained in:
Josh d'Entremont 2023-10-06 14:53:55 -03:00
parent 469bd8005d
commit 4c8c26f4b2
5 changed files with 12 additions and 11 deletions

View file

@ -83,7 +83,7 @@
updateFieldWeights(table, regionName);
};
$(context).find('select.field-display').once('field-display').on('change', function (event) {
$(once('field-display', 'select.field-display', context)).on('change', function (event) {
var row = $(this).closest('tr');
var select = $(this);