From 3cb0f3bb62f2566b2dc813425c7baa1c5ca2271a Mon Sep 17 00:00:00 2001 From: tholam Date: Tue, 26 Nov 2013 16:07:03 -0600 Subject: [PATCH] Add refresh functionality on fancycaptcha for mobile Created a new module for use in mobilefrontend extension Dependency: I4c92422428de60d2e11ba891fe44dbf43ad99c43 Bug: 51482 Change-Id: Ieecf289ec5fb7307369ba8b3f1ebbe682b900383 --- FancyCaptcha.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/FancyCaptcha.php b/FancyCaptcha.php index 46002e22e..cbabb4a00 100644 --- a/FancyCaptcha.php +++ b/FancyCaptcha.php @@ -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';