MDL-49959 course: Fix hidden drag and drop message

This commit is contained in:
Barry Oosthuizen
2015-06-09 09:37:53 +01:00
parent 17abbfba1f
commit a3657f8b42
+25 -5
View File
@@ -146,7 +146,7 @@ M.course_dndupload = {
styletopunit = styletop.replace(/^\d+/, '');
styletop = parseInt(styletop.replace(/\D*$/, ''), 10);
var fadeanim = new Y.Anim({
var fadein = new Y.Anim({
node: '#dndupload-status',
from: {
opacity: 0.0,
@@ -159,11 +159,31 @@ M.course_dndupload = {
},
duration: 0.5
});
fadeanim.once('end', function(e) {
this.set('reverse', 1);
Y.later(3000, this, 'run', null, false);
var fadeout = new Y.Anim({
node: '#dndupload-status',
from: {
opacity: 1.0,
top: styletop.toString() + styletopunit
},
to: {
opacity: 0.0,
top: (styletop - 30).toString() + styletopunit
},
duration: 0.5
});
fadein.run();
fadein.on('end', function(e) {
Y.later(3000, this, function() {
fadeout.run();
});
});
fadeout.on('end', function(e) {
Y.one('#dndupload-status').remove(true);
});
fadeanim.run();
},
/**