Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: originalEvent is not a function #505

Closed
JJMC89 opened this issue Jan 22, 2019 · 3 comments
Closed

Uncaught TypeError: originalEvent is not a function #505

JJMC89 opened this issue Jan 22, 2019 · 3 comments
Assignees

Comments

@JJMC89
Copy link
Contributor

JJMC89 commented Jan 22, 2019

I get the below error when (un)checking CSD criteria when multiple is cheched.

Uncaught TypeError: originalEvent is not a function at HTMLInputElement.criterion.event (load.php?debug=false&lang=en&modules=ext.gadget.Twinkle&skin=vector&version=0f2ee8y:formatted:5582)
criterion.event @ load.php?debug=false&lang=en&modules=ext.gadget.Twinkle&skin=vector&version=0f2ee8y:formatted:5582

It refers to
https://github.com/azatoth/twinkle/blob/b91e9dfdb72e15ed93358e6c2b03ad565e8d66ae/modules/twinklespeedy.js#L501

@Amorymeltzer
Copy link
Collaborator

Amorymeltzer commented Mar 16, 2019

I've got an implementation for #520 that I think should take care of this.

@Amorymeltzer
Copy link
Collaborator

#563

@Amorymeltzer Amorymeltzer self-assigned this Apr 2, 2019
Amorymeltzer added a commit to Amorymeltzer/twinkle that referenced this issue May 28, 2019
Closes wikimedia-gadgets#520 and wikimedia-gadgets#505.  Removes the old "open talk page" sysop option and folds the non-sysop tagging system into a unified `noteToCreator` notification system for both tagfing and deleting.  Uses the existing system for tagging to determine whether or not to notify, rather than the bespoke option for `openUserTalk` from wikimedia-gadgets#300; that is, it will notify only if the corresponding box is checked AND (at least one of) the CSD in question is checked in the user preferences.

The box is checked by default, unless it finds `$('#delete-reason')` on the page, indicating some sort of XfD or CSD or the like; in the latter scenario, if the box is subsequently checked, there is an additional prompt (this might be a good candidate for removal down the line, but I think it's important to include now, especially since it's a new feature).  It uses the existing preference about whether to welcome the user alongside the notification rather than create a separate one just for post-deletion notifications.

New templates all listed at [[Template:Speedy deletion deleted]].
Amorymeltzer added a commit to Amorymeltzer/twinkle that referenced this issue May 28, 2019
Closes wikimedia-gadgets#520 and wikimedia-gadgets#505.  Removes the old "open talk page" sysop option and folds the non-sysop tagging system into a unified `noteToCreator` notification system for both tagfing and deleting.  Uses the existing system for tagging to determine whether or not to notify, rather than the bespoke option for `openUserTalk` from wikimedia-gadgets#300; that is, it will notify only if the corresponding box is checked AND (at least one of) the CSD in question is checked in the user preferences.

The box is checked by default, unless it finds `$('#delete-reason')` on the page, indicating some sort of XfD or CSD or the like; in the latter scenario, if the box is subsequently checked, there is an additional prompt (this might be a good candidate for removal down the line, but I think it's important to include now, especially since it's a new feature).  It uses the existing preference about whether to welcome the user alongside the notification rather than create a separate one just for post-deletion notifications.

New templates all listed at [[Template:Speedy deletion deleted]].
@Amorymeltzer
Copy link
Collaborator

Amorymeltzer commented Jun 2, 2019

Solved in #563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants