Page MenuHomePhabricator

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

Description

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?

Event Timeline

Green_Zero raised the priority of this task from to Medium.
Green_Zero updated the task description. (Show Details)
Green_Zero subscribed.

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

Aklapper renamed this task 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 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.