MediaWiki:Common.js: Difference between revisions

Content deleted Content added
drop workaround for lack of :checked in IE8, since it's no longer supported (https://phabricator.wikimedia.org/T118303)
undo, needs some tweaking for frequency options
Line 323:
$preSelectOption = $('input[name="amount"][value="' + preSelectAmount + '"]');
if ( $preSelectOption.length ) {
// Select existing input, and add class to label for IE
$preSelectOption.prop('checked', true);
$preSelectOption.siblings('label').addClass('checked');
} else {
$('#input_amount_other_box').val( preSelectAmount );
$('#input_amount_other').prop('checked', true);
$('label[for="input_amount_other"]').addClass('checked');
}
}
Line 368 ⟶ 370:
$("#p-logo a").attr("title", "");
 
$(".frequency-options label").click(function() {
$(".frequency-options label").removeClass("checked");
$(this).addClass("checked");
});
 
$(".radiobuttons-cell label").click(function() {
$(".radiobuttons-cell label").removeClass("checked");
$(this).addClass("checked");
});
 
$(".input_amount_other").click(function() {