Template:Optin/ConfirmNo: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 15:
</ul>
<div class="optin-no-prompt">
<div class="optin-no-prompt__no">
<div class="optin-no-prompt__yes">
</div>
<div class="optin-smallprint links-in-new-tab">
Line 24:
<style>
/* --- Opt-in --- */
.optin-options ul {
list-style: none;
Line 100 ⟶ 99:
</style>
<script>
/* Called by Common.js */
function initOptin() {
var language = mw.config.get('wgUserLanguage');
Line 110:
optinNoPrompts['en-gb'] = optinNoPrompts['en'];
// Only do all this if we have translated prompts
if ( optinNoPrompts[language] ) {
$('.optin-no-prompt__no').text( optinNoPrompts[language].no );
Line 116 ⟶ 117:
$('.optin-options').on('click', function(){
if ( $('#optin-no').is(':checked') ) {
if ( !$('.optin-no-prompt').is(':visible') ) {
$('.optin-no-prompt').slideDown();
}
} else {
}
});
|