Permalink
Browse files

MDL-33073 Fix application of toolbox JS for drag/dropped content

  • Loading branch information...
1 parent 7ded1e2 commit 537194ffc568a9d80ff76fb2b113f9f7f0d07630 @andrewnicols andrewnicols committed May 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/yui/toolboxes/toolboxes.js
@@ -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);

0 comments on commit 537194f

Please sign in to comment.