Mwalker has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/126173

Change subject: Fix wonky WorldPay form loading
......................................................................

Fix wonky WorldPay form loading

Originally the form would appear to the right of the page instead
of to the left. This was caused by late application of the CSS.

Adding the worldpay module to the head of the document prevents
this problem.

Change-Id: I7657e6c7070d3c9b45ddd6be12f1b8f9d33ec861
---
M gateway_forms/rapidhtml/RapidHtmlResources.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/73/126173/1

diff --git a/gateway_forms/rapidhtml/RapidHtmlResources.php 
b/gateway_forms/rapidhtml/RapidHtmlResources.php
index abc3904..3f06a7c 100644
--- a/gateway_forms/rapidhtml/RapidHtmlResources.php
+++ b/gateway_forms/rapidhtml/RapidHtmlResources.php
@@ -305,6 +305,7 @@
        'dependencies' => array ('di.form.core.validate', 'jquery.payment'),
        'localBasePath' => dirname( __FILE__ ).'/../../worldpay_gateway/forms',
        'remoteExtPath' => $wgWorldPayRapidHtmlRemoteExtPath,
+       'position' => 'top',
 );
 
 $wgResourceModules[ 'basicDonationForm' ] = array(

-- 
To view, visit https://gerrit.wikimedia.org/r/126173
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7657e6c7070d3c9b45ddd6be12f1b8f9d33ec861
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Mwalker <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to