MDL-35119 tool_assignmentupgrade Changing onsubmit form for onclick button
authorDavid Monllao <davidm@moodle.com>
Wed, 29 Aug 2012 07:01:40 +0000 (15:01 +0800)
committerAparup Banerjee <aparup@moodle.com>
Thu, 30 Aug 2012 07:01:17 +0000 (15:01 +0800)
admin/tool/assignmentupgrade/module.js

index edee839..59df8c5 100644 (file)
@@ -42,8 +42,8 @@ M.tool_assignmentupgrade = {
             }
         });
 
-        var batchform = Y.one('.tool_assignmentupgrade_batchform form');
-        batchform.on('submit', function(e) {
+        var upgradeselectedbutton = Y.one('#id_upgradeselected');
+        upgradeselectedbutton.on('click', function(e) {
             checkboxes = Y.all('td.c0 input');
             var selectedassignments = [];
             checkboxes.each(function(node) {