mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-46157 drag and drop: Improve item labels
Ignore the edit menu when determining the region to drag.
This commit is contained in:
parent
1dabedeedf
commit
9b5882d3e1
4 changed files with 5 additions and 5 deletions
|
@ -339,7 +339,7 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||||
*/
|
*/
|
||||||
find_element_text: function(n) {
|
find_element_text: function(n) {
|
||||||
// The valid node types to get text from.
|
// The valid node types to get text from.
|
||||||
var nodes = n.all('h2, h3, h4, h5, span, p, div.no-overflow, div.dimmed_text');
|
var nodes = n.all('h2, h3, h4, h5, span:not(.actions):not(.menu-action-text), p, div.no-overflow, div.dimmed_text');
|
||||||
var text = '';
|
var text = '';
|
||||||
|
|
||||||
nodes.each(function () {
|
nodes.each(function () {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -339,7 +339,7 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||||
*/
|
*/
|
||||||
find_element_text: function(n) {
|
find_element_text: function(n) {
|
||||||
// The valid node types to get text from.
|
// The valid node types to get text from.
|
||||||
var nodes = n.all('h2, h3, h4, h5, span, p, div.no-overflow, div.dimmed_text');
|
var nodes = n.all('h2, h3, h4, h5, span:not(.actions):not(.menu-action-text), p, div.no-overflow, div.dimmed_text');
|
||||||
var text = '';
|
var text = '';
|
||||||
|
|
||||||
nodes.each(function () {
|
nodes.each(function () {
|
||||||
|
|
2
lib/yui/src/dragdrop/js/dragdrop.js
vendored
2
lib/yui/src/dragdrop/js/dragdrop.js
vendored
|
@ -337,7 +337,7 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||||
*/
|
*/
|
||||||
find_element_text: function(n) {
|
find_element_text: function(n) {
|
||||||
// The valid node types to get text from.
|
// The valid node types to get text from.
|
||||||
var nodes = n.all('h2, h3, h4, h5, span, p, div.no-overflow, div.dimmed_text');
|
var nodes = n.all('h2, h3, h4, h5, span:not(.actions):not(.menu-action-text), p, div.no-overflow, div.dimmed_text');
|
||||||
var text = '';
|
var text = '';
|
||||||
|
|
||||||
nodes.each(function () {
|
nodes.each(function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue