MediaWiki:Common.js: различия между версиями
Перейти к навигации
Перейти к поиску
Claustrum (обсуждение | вклад) Нет описания правки |
Claustrum (обсуждение | вклад) мНет описания правки |
||
Строка 3: | Строка 3: | ||
// Примечания в цитатах | // Примечания в цитатах | ||
// | // | ||
$('blockquote.quote sup.reference a').each (function () { | $('blockquote.quote sup.reference a').each (function () { | ||
var match = $(this).text ().match (/\[([^\[\]]*)\s([\d]+)\]/); | var match = $(this).text ().match (/\[([^\[\]]*)\s([\d]+)\]/); | ||
if (match !== null) | if (match !== null) { | ||
$(this). | $(this).text ('[' + match[2] + ']'); | ||
$(this).parent ().addClass ('localCiteRef'); | |||
} | |||
}); | }); | ||