Merge branch 'MDL-57480-master' of https://github.com/snake/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 10 Jan 2017 08:40:10 +0000 (08:40 +0000)
committerDan Poltawski <dan@moodle.com>
Tue, 10 Jan 2017 08:40:10 +0000 (08:40 +0000)
course/dndupload.js

index eb759d8..7c60ee0 100644 (file)
@@ -774,6 +774,10 @@ M.course_dndupload = {
                                 resel.li.outerHTML = unescape(resel.li.outerHTML);
                             }
                             self.add_editing(result.elementid);
+                            // Fire the content updated event.
+                            require(['core/event', 'jquery'], function(event, $) {
+                                event.notifyFilterContentUpdated($(result.fullcontent));
+                            });
                         } else {
                             // Error - remove the dummy element
                             resel.parent.removeChild(resel.li);