mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-50563' of https://github.com/NeillM/moodle
This commit is contained in:
commit
12ae35433f
@ -209,6 +209,8 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||
if (!this.in_group(drag)) {
|
||||
return;
|
||||
}
|
||||
// Store the nodes current style, so we can restore it later.
|
||||
this.originalstyle = drag.get('node').getAttribute('style');
|
||||
// Set some general styles here
|
||||
drag.get('node').setStyle('opacity', '.25');
|
||||
drag.get('dragNode').setStyles({
|
||||
@ -227,10 +229,7 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||
return;
|
||||
}
|
||||
//Put our general styles back
|
||||
drag.get('node').setStyles({
|
||||
visibility: '',
|
||||
opacity: '1'
|
||||
});
|
||||
drag.get('node').setAttribute('style', this.originalstyle);
|
||||
this.drag_end(e);
|
||||
},
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -209,6 +209,8 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||
if (!this.in_group(drag)) {
|
||||
return;
|
||||
}
|
||||
// Store the nodes current style, so we can restore it later.
|
||||
this.originalstyle = drag.get('node').getAttribute('style');
|
||||
// Set some general styles here
|
||||
drag.get('node').setStyle('opacity', '.25');
|
||||
drag.get('dragNode').setStyles({
|
||||
@ -227,10 +229,7 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||
return;
|
||||
}
|
||||
//Put our general styles back
|
||||
drag.get('node').setStyles({
|
||||
visibility: '',
|
||||
opacity: '1'
|
||||
});
|
||||
drag.get('node').setAttribute('style', this.originalstyle);
|
||||
this.drag_end(e);
|
||||
},
|
||||
|
||||
|
7
lib/yui/src/dragdrop/js/dragdrop.js
vendored
7
lib/yui/src/dragdrop/js/dragdrop.js
vendored
@ -207,6 +207,8 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||
if (!this.in_group(drag)) {
|
||||
return;
|
||||
}
|
||||
// Store the nodes current style, so we can restore it later.
|
||||
this.originalstyle = drag.get('node').getAttribute('style');
|
||||
// Set some general styles here
|
||||
drag.get('node').setStyle('opacity', '.25');
|
||||
drag.get('dragNode').setStyles({
|
||||
@ -225,10 +227,7 @@ Y.extend(DRAGDROP, Y.Base, {
|
||||
return;
|
||||
}
|
||||
//Put our general styles back
|
||||
drag.get('node').setStyles({
|
||||
visibility: '',
|
||||
opacity: '1'
|
||||
});
|
||||
drag.get('node').setAttribute('style', this.originalstyle);
|
||||
this.drag_end(e);
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user