Commit graph

3 commits

Author SHA1 Message Date
James D. Forrester 2f9beac0fa build: Switch eslint to ES6 mode, and make pass
Change-Id: Ic29ad198519a7455909b8ee32fa891c7881e4bb5
2023-09-20 09:27:51 +01:00
Bartosz Dziewoński e7fc8fd290 Fix field placeholder for QuestyCaptcha and others
The message 'fancycaptcha-imgcaptcha-ph' ("Enter the text you see on the image")
should only be used as placeholder for FancyCaptcha.

This affected editors using CaptchaInputWidget in JS, such as VisualEditor
and DiscussionTools.

Change-Id: Ica53b2f3149e9039c95e733e0e89ba62356844e4
2021-01-26 00:15:33 +01:00
Bartosz Dziewoński f786536715 Extract CaptchaInputWidget from VE code for use in other extensions
* ext.confirmEdit.CaptchaInputWidget.js:
  Based on code from ve.init.mw.CaptchaSaveErrorHandler.js

* ext.confirmEdit.CaptchaInputWidget.less:
  Based on code from mw/ext/VE repo in ve.ui.MWSaveDialog.css

* ConfirmEditHooks.php:
  Based on code from mw/ext/VE repo in VisualEditorHooks.php

Change-Id: I6605017fd31a4f96c529dd0beb69e9f4433cebc1
2020-04-15 16:06:58 +02:00