Merge "Add refresh functionality on fancycaptcha for mobile"

This commit is contained in:
jenkins-bot 2013-12-02 22:53:19 +00:00 committed by Gerrit Code Review
commit a9c4df8baa

View file

@ -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';