MediaWiki:Common.js: Różnice pomiędzy wersjami
Nie podano opisu zmian |
mNie podano opisu zmian |
||
(Nie pokazano 30 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
Linia 9: | Linia 9: | ||
} | } | ||
Linia 17: | Linia 14: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$('.selflink').parent('span.reference').css('display', 'none').css('width', '0'); | $('.selflink').parent('span.reference').css('display', 'none').css('width', '0'); | ||
set_verse_width(); | set_verse_width(); | ||
$('textarea').bind('keydown', 'ctrl+b', function(){ | |||
$(this).surroundSelectedText("'''", "'''"); | |||
}); | |||
$( | $('textarea').bind('keydown', 'meta+b', function(){ | ||
$(this).surroundSelectedText("'''", "'''"); | |||
}); | |||
$('textarea').bind('keydown', 'ctrl+i', function(){ | |||
$(this).surroundSelectedText("''", "''"); | |||
}); | |||
$('textarea').bind('keydown', 'meta+i', function(){ | |||
$(this).surroundSelectedText("''", "''"); | |||
}); | |||
$('textarea').bind('keydown', 'alt+meta+x', function(){ | |||
$(this).surroundSelectedText("<ref>", "</ref>"); | |||
}); | |||
$('textarea').bind('keydown', 'alt+ctrl+x', function(){ | |||
$(this).surroundSelectedText("<ref>", "</ref>"); | |||
}); | |||
}); | }); | ||
$ | $(window).resize(function() { | ||
set_verse_width(); | set_verse_width(); | ||
}); | }); |