r97231 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97230‎ | r97231 | r97232 >
Date:02:53, 16 September 2011
Author:pgehres
Status:ok
Tags:
Comment:
Some IE6/7 fixes for testing, outside review
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1.html (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1.html
@@ -21,6 +21,8 @@
2222 #appeal-content { padding-right: 380px; }
2323 .clear { clear: both; }
2424 #donate { float: left; margin-left: -350px; width: 350px; }
 25+
 26+ #zip { width: 2em; }
2527 </style>
2628
2729 <div class="ltr">
@@ -229,6 +231,21 @@
230232 if( count > 0 ){
231233 // show the second step with the error
232234 $("#accordion").accordion( "activate" , 1 );
 235+
 236+ //we have clearly selected an amount before, make sure it is shown
 237+ showAmount( $("input[name=amount]") );
 238+
 239+ // hacks for IE6/IE7
 240+ if (jQuery.browser.msie && jQuery.browser.version.substr(0,1)<8){
 241+ $("#change-amount").click( function(){
 242+ $("#donate").css("width","335px");
 243+ $("#step1accordion").show();
 244+ $("#step2accordion").hide();
 245+ });
 246+ $("#donate").css("width","335px");
 247+ $("#step1accordion").hide();
 248+ $("#step2accordion").show();
 249+ }
233250 }
234251 // Inline labels
235252 $(".hint").ezpz_hint();
@@ -238,6 +255,18 @@
239256 showAmount( $("input[name=amount]") );
240257 $("#accordion").accordion("activate", 1);
241258 $("#change-amount").show();
 259+
 260+ // hacks for IE6/IE7
 261+ if (jQuery.browser.msie && jQuery.browser.version.substr(0,1)<8){
 262+ $("#change-amount").click( function(){
 263+ $("#donate").css("width","335px");
 264+ $("#step1accordion").show();
 265+ $("#step2accordion").hide();
 266+ });
 267+ $("#donate").css("width","335px");
 268+ $("#step1accordion").hide();
 269+ $("#step2accordion").show();
 270+ }
242271 }
243272
244273 });

Status & tagging log