← Back to team overview

mahara-contributors team mailing list archive

[Bug 646864] Re: Upload file message does not delete properly + fix

 

Hi Matt, which version do you use? I have fixed it the other day:

 09fdbf1036b6b on master
 035d5de18221 on 1.3_STABLE 

** Changed in: mahara
       Status: New => Invalid

-- 
Upload file message does not delete properly + fix
https://bugs.launchpad.net/bugs/646864
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Invalid

Bug description:
Once a file is uploaded, a message appears saying 'xxxx uploaded as xxxx'. If you click the icon to delete the message, a green bar is left behind, rather than the message disappearing completely.

This is caused by an error in /artefact/file/js/filebrowser.js in the upload_success function at line 185, which reads:

  replaceChildNodes($('uploadstatusline'+data.uploadnumber), newmessage);

Whereas it should read:

  replaceChildNodes($('uploadstatusline'+data.uploadnumber), newmessage.childNodes);





References