User tests: Successful: Unsuccessful:
I came to this because I intergrated the jquery-fileupload plugin and noticed that there is an error when uploading a file. The reason is the the plugin fires the change event and the check fails because elem.form is null instead of undefined. This brings an error
"TypeError: elem.form is null"
for the line:
"var self = elem.form.H5Form"
not the end of the world but also not nice. There might be other ways to go around that but this is what I did and it worked.
Labels |
Added:
?
|
Oops I meant #3024
This comment was created with the J!Tracker Application at http://issues.joomla.org/.
It is a different error message but essentially the same issue, I think my check goes a bit further but I am not the javascript expert
I think my check goes a bit further ..
but here no need such precision, enough just if(!elem.form)
also your check do not count a couple states that also equals false
, like elem.form = ''
elem.form = 0
elem.form = false
I can confirm that the problem is fixed with "if(!elem.form)"
This comment was created with the J!Tracker Application at http://issues.joomla.org/.
Category | ⇒ | JavaScript |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-09-29 19:43:30 |
Is this the same issue as #3254
This comment was created with the J!Tracker Application at http://issues.joomla.org/.