diff --git a/core/misc/tabledrag.es6.js b/core/misc/tabledrag.es6.js index 8045d128ad..d15370d6b9 100644 --- a/core/misc/tabledrag.es6.js +++ b/core/misc/tabledrag.es6.js @@ -1158,7 +1158,8 @@ } else { this.value = maxVal; } - }); + }) + .trigger('change'); } else { // Assume a numeric input field. let weight = @@ -1173,7 +1174,8 @@ .each(function() { this.value = weight; weight++; - }); + }) + .trigger('change'); } break; } diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js index b42e4475fe..6cc4d440aa 100644 --- a/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -683,13 +683,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol } else { this.value = maxVal; } - }); + }).trigger('change'); } else { var weight = parseInt($(siblings[0]).find(targetClass).val(), 10) || 0; $(siblings).find(targetClass).each(function () { this.value = weight; weight++; - }); + }).trigger('change'); } break; }