jQuery.event.dispatch TypeError on beta.wikiversity.org
Closed, ResolvedPublic


Hello. In the https://beta.wikiversity.org project when editing - do not working bottom buttons (<tt></tt>, <nowiki></nowiki>, {{DEFAULTSORT:}} and other). I click on it, but it's not pasted. How can fix error?

Green_Zero added a subscriber: Green_Zero.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 10 2015, 5:38 PM

Uncaught TypeError: ((jQuery.event.special[handleObj.origType] || (intermediate value)).handle || handleObj.handler).apply is not a function
from jQuery.event.dispatch

Aklapper changed the title from "Error in beta.wikiversity.org" to "jQuery.event.dispatch TypeError on beta.wikiversity.org".Sep 11 2015, 12:21 PM
Aklapper set Security to None.
Krinkle closed this task as "Resolved".Sep 11 2015, 7:35 PM
Krinkle claimed this task.

Indeed. The following line seems invalid. jQuery does not support binding strings as click handlers. They must be functions. Naturally, a method apply is later not found.

$button.click( $(this).attr('onclick') );

Fixed in Revision 177245.

See also T85787 and T11424 which are in need of attention.

Thanks!! Its working!