diff --git a/Resources/public/js/EMCTable.js b/Resources/public/js/EMCTable.js index 9b19a4a..e2bf78a 100644 --- a/Resources/public/js/EMCTable.js +++ b/Resources/public/js/EMCTable.js @@ -88,7 +88,7 @@ EMCTable.prototype.init = function() { that.find(1); }); - this.$dom.on('change', '> tfoot > tr > td > select', function(event) { + this.$dom.on('change', '> tfoot > tr > td select.limit', function(event) { that.limit = $(this).val(); that.find(1); }); @@ -392,4 +392,4 @@ EMCTable.prototype.request.get = function(route, data, dataType) { }); return result; -}; \ No newline at end of file +}; diff --git a/Resources/views/template.html.twig b/Resources/views/template.html.twig index c4aff7b..f0657bf 100644 --- a/Resources/views/template.html.twig +++ b/Resources/views/template.html.twig @@ -169,7 +169,7 @@ {% block limit_select %} {% if total > limit %} -