This commit is contained in:
Andrew Nicols 2015-07-22 09:16:32 +08:00
commit 12ae35433f
4 changed files with 11 additions and 14 deletions

View File

@ -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

View File

@ -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);
},

View File

@ -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);
},