mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-23 15:56:50 +00:00
Add refresh functionality on fancycaptcha for mobile
Created a new module for use in mobilefrontend extension Dependency: I4c92422428de60d2e11ba891fe44dbf43ad99c43 Bug: 51482 Change-Id: Ieecf289ec5fb7307369ba8b3f1ebbe682b900383
This commit is contained in:
parent
f74dca7813
commit
3cb0f3bb62
|
@ -62,6 +62,7 @@ $wgAutoloadClasses['FancyCaptcha'] = $dir . '/FancyCaptcha.class.php';
|
|||
$wgResourceModules['ext.confirmEdit.fancyCaptcha.styles'] = array(
|
||||
'localBasePath' => $dir . '/resources',
|
||||
'remoteExtPath' => 'ConfirmEdit/resources',
|
||||
'targets' => array( 'mobile', 'desktop' ),
|
||||
'styles' => 'ext.confirmEdit.fancyCaptcha.css',
|
||||
);
|
||||
|
||||
|
@ -72,5 +73,15 @@ $wgResourceModules['ext.confirmEdit.fancyCaptcha'] = array(
|
|||
'dependencies' => 'mediawiki.api',
|
||||
);
|
||||
|
||||
// FIXME: remove, add mobile target to ext.confirmEdit.fancyCaptcha and update
|
||||
// MobileFrontend accordingly when bug 57629 is resolved
|
||||
$wgResourceModules['ext.confirmEdit.fancyCaptchaMobile'] = array(
|
||||
'localBasePath' => $dir . '/resources',
|
||||
'remoteExtPath' => 'ConfirmEdit/resources',
|
||||
'scripts' => 'ext.confirmEdit.fancyCaptcha.js',
|
||||
'targets' => array( 'mobile', 'desktop' ),
|
||||
'dependencies' => 'mobile.startup',
|
||||
);
|
||||
|
||||
$wgAutoloadClasses['ApiFancyCaptchaReload'] = $dir . '/ApiFancyCaptchaReload.php';
|
||||
$wgAPIModules['fancycaptchareload'] = 'ApiFancyCaptchaReload';
|
||||
|
|
Loading…
Reference in a new issue