Surround attachment form cleaning with try/catch

release-0.6
thomascube 14 years ago
parent 52c0f7626c
commit 64fa955059

@ -88,8 +88,12 @@ uploadmenu: function(show)
{
if (typeof show == 'object') // called as event handler
show = false;
if (!show)
$('#attachment-form input[type=file]').val('');
// clear upload form
if (!show) {
try { $('#attachment-form form')[0].reset(); }
catch(e){} // ignore errors
}
this.show_popupmenu('uploadmenu', show);

Loading…
Cancel
Save