lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/pagination.js in mdd-3.1.0 vs lib/generators/mdwa/sandbox/templates/app/assets/javascripts/mdwa/template/pagination.js in mdd-3.1.1

- old
+ new

@@ -1,6 +1,10 @@ -$(function() { - $(".pagination a").on("click", function() { +$(document).ready(function() { + $(document).on("click", "#pagination .pagination a", function() { $.getScript(this.href); return false; + }); + + $(document).on("change", "#pagination select", function() { + $.getScript($(this).attr('local_url') + "&per_page=" + $(this).val()); }); });