Diskuse k MediaWiki:Common.js/IEFixes.js
Přidat témaVzhled
Poslední komentář: před 7 lety od uživatelky Nemo bis v tématu „Broken JavaScript“
Řádkové seznamy[editovat zdroj]
Prosím o vložení následujícího kódu (převzato z enwiki):
/**
* Pomocný skript pro třídu .hlist na Common.css
* Poslední aktualizace: January 24, 2013
* @source mediawiki.org/wiki/Snippets/Horizontal_lists
* @maintainer: [[User:Edokter]]
* @revision: 3.1
*/
/* Fix wrapping issue in IE 8 and up for hlist in table; put a soft-hyphen in front of list items. */
if ( $.client.profile().versionNumber > 7 ) {
mw.util.addCSS( 'table.hlist li:before { content: "\\ad"; }' );
}
/* Add pseudo-selector class to last-child list items in IE 8 */
if ( $.client.profile().versionNumber === 8 ) {
$( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' )
.addClass( 'hlist-last-child' );
}
/* Generate interpuncts and parentheses for IE < 8 */
if ( $.client.profile().versionNumber < 8 ) {
var hlists = $( '.hlist' );
hlists.find( 'dt:not(:last-child)' )
.append( ': ' );
hlists.find( 'dd:not(:last-child)' )
.append( '<b>·</b> ' );
hlists.find( 'li:not(:last-child)' )
.append( '<b>·</b> ' );
hlists.find( 'dl dl, dl ol, dl ul, ol dl, ol ol, ol ul, ul dl, ul ol, ul ul' )
.prepend( '( ' ).append( ') ' );
}
--Shlomo (diskuse) 22. 8. 2013, 15:32 (UTC)
Broken JavaScript[editovat zdroj]
MediaWiki developers found that this page probably breaks JavaScript for users (example: not seeing the buttons when editing a page). You probably need to edit this .js page and/or MediaWiki:Gadgets-definition as in the examples at phabricator:T122755. List more pages to check.
If you have questions or need help, please ask at phabricator:T164242. You can login with your wiki account. Best wishes, Nemo 14. 5. 2017, 11:49 (CEST)