? Success

User tests: Successful: Unsuccessful:

avatar rdeutz
rdeutz
27 Sep 2014

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.

avatar rdeutz rdeutz - open - 27 Sep 2014
avatar jissues-bot jissues-bot - change - 27 Sep 2014
Labels Added: ?
avatar brianteeman
brianteeman - comment - 27 Sep 2014

Is this the same issue as #3254

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar brianteeman
brianteeman - comment - 27 Sep 2014

Oops I meant #3024

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar rdeutz
rdeutz - comment - 27 Sep 2014

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

avatar Fedik
Fedik - comment - 28 Sep 2014

I think my check goes a bit further ..

but here no need such precision, enough just if(!elem.form) :wink:
also your check do not count a couple states that also equals false, like elem.form = '' elem.form = 0 elem.form = false

avatar rdeutz
rdeutz - comment - 28 Sep 2014

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/.

avatar zero-24 zero-24 - change - 28 Sep 2014
Category JavaScript
avatar phproberto phproberto - close - 29 Sep 2014
avatar phproberto
phproberto - comment - 29 Sep 2014

Closing this in favour of #3024 then.

avatar phproberto phproberto - change - 29 Sep 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-09-29 19:43:30

Add a Comment

Login with GitHub to post a comment