mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 11:23:06 +02:00
MDL-33073 Fix application of toolbox JS for drag/dropped content
This commit is contained in:
parent
7ded1e29f9
commit
537194ffc5
4
course/yui/toolboxes/toolboxes.js
vendored
4
course/yui/toolboxes/toolboxes.js
vendored
@ -3,7 +3,7 @@ YUI.add('moodle-course-toolboxes', function(Y) {
|
||||
// The CSS selectors we use
|
||||
var CSS = {
|
||||
ACTIVITYLI : 'li.activity',
|
||||
COMMANDSPAN : 'li.activity span.commands',
|
||||
COMMANDSPAN : 'span.commands',
|
||||
SPINNERCOMMANDSPAN : 'span.commands',
|
||||
CONTENTAFTERLINK : 'div.contentafterlink',
|
||||
DELETE : 'a.editing_delete',
|
||||
@ -252,7 +252,7 @@ YUI.add('moodle-course-toolboxes', function(Y) {
|
||||
*/
|
||||
setup_for_resource : function(baseselector) {
|
||||
if (!baseselector) {
|
||||
var baseselector = CSS.PAGECONTENT;
|
||||
var baseselector = CSS.PAGECONTENT + ' ' + CSS.ACTIVITYLI;;
|
||||
}
|
||||
|
||||
Y.all(baseselector).each(this._setup_for_resource, this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user