MDL-32895: Improvements to assignment upgrade tool for large numbers of assignments.
[moodle.git] / admin / tool / assignmentupgrade / module.js
index 829f99a..edee839 100644 (file)
@@ -61,6 +61,11 @@ M.tool_assignmentupgrade = {
             }
         });
 
             }
         });
 
+        var perpage = Y.one('#id_perpage');
+        perpage.on('change', function(e) {
+            window.onbeforeunload = null;
+            Y.one('.tool_assignmentupgrade_paginationform form').submit();
+        });
 
     }
 }
 
     }
 }