]> git.mjollnir.org Git - moodle.git/commitdiff
Use direct menu
authormoodler <moodler>
Sun, 10 Aug 2003 02:53:49 +0000 (02:53 +0000)
committermoodler <moodler>
Sun, 10 Aug 2003 02:53:49 +0000 (02:53 +0000)
course/category.php

index e1da093ae84cae4d35c5cd5f9186609ed1c8cd44..13401db51c76706cb75f6d39cded8a0b89f411ae 100644 (file)
         }
 
     
-        echo "<form action=category.php method=post>";
+        echo "<form name=\"movecourses\" action=\"category.php\" method=\"post\">";
         echo "<table align=\"center\" border=0 cellspacing=2 cellpadding=4 class=\"generalbox\"><tr>";
         echo "<th>$strcourses</th>";
         if ($creatorediting) {
             echo "<tr><td colspan=3 align=right>";
             echo "<br />";
             unset($displaylist[$category->id]);
-            choose_from_menu ($displaylist, "moveto", "", get_string("moveselectedcoursesto"), "");
+            choose_from_menu ($displaylist, "moveto", "", get_string("moveselectedcoursesto"), "javascript:document.movecourses.submit()");
             echo "<input type=\"hidden\" name=\"id\" value=\"$category->id\">";
-            echo "<input type=\"submit\" value=\"".get_string("move")."\">";
             echo "</td></tr>";
         }