MDL-42629 course: improved wording on move course dialogue
authorSam Hemelryk <sam@moodle.com>
Thu, 31 Oct 2013 05:36:00 +0000 (13:36 +0800)
committerSam Hemelryk <sam@moodle.com>
Tue, 5 Nov 2013 01:48:38 +0000 (09:48 +0800)
course/classes/management_renderer.php
course/yui/build/moodle-course-management/moodle-course-management-debug.js
course/yui/build/moodle-course-management/moodle-course-management-min.js
course/yui/build/moodle-course-management/moodle-course-management.js
course/yui/src/management/js/category.js
course/yui/src/management/js/dd.js

index fa26e1b..f54e445 100644 (file)
@@ -44,7 +44,7 @@ class core_course_management_renderer extends plugin_renderer_base {
     public function enhance_management_interface() {
         $this->page->requires->yui_module('moodle-course-management', 'M.course.management.init');
         $this->page->requires->strings_for_js(
-            array('show', 'hide', 'expand', 'collapse', 'confirmcoursemove', 'yes', 'no', 'confirm'),
+            array('show', 'hide', 'expand', 'collapse', 'confirmcoursemove', 'move', 'cancel', 'confirm'),
             'moodle'
         );
     }
index af49f08..953ffab 100644 (file)
Binary files a/course/yui/build/moodle-course-management/moodle-course-management-debug.js and b/course/yui/build/moodle-course-management/moodle-course-management-debug.js differ
index c8c707d..f6080c8 100644 (file)
Binary files a/course/yui/build/moodle-course-management/moodle-course-management-min.js and b/course/yui/build/moodle-course-management/moodle-course-management-min.js differ
index 02452ba..68e88a8 100644 (file)
Binary files a/course/yui/build/moodle-course-management/moodle-course-management.js and b/course/yui/build/moodle-course-management/moodle-course-management.js differ
index ea09c8c..f8135ea 100644 (file)
@@ -216,8 +216,8 @@ Category.prototype = {
                     course : course.getName(),
                     category : self.getName()
                 }),
-                yesLabel : M.util.get_string('yes', 'moodle'),
-                noLabel : M.util.get_string('no', 'moodle')
+                yesLabel : M.util.get_string('move', 'moodle'),
+                noLabel : M.util.get_string('cancel', 'moodle')
             });
             confirm.on('complete-yes', function() {
                 confirm.hide();
index 5cd83f4..c0250f5 100644 (file)
@@ -239,8 +239,7 @@ DragDrop.prototype = {
             previousid;
 
         if (!drag.test('.listitem-course')) {
-            Y.log('Wasn\'t what I expected', 'warn', 'moodle-course-management');
-            alert(drag);
+            Y.log('It was not a course being dragged.', 'warn', 'moodle-course-management');
             return false;
         }
         courseid = drag.getData('id');