This should do
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// ua
|
||||
$(document).ready(function() {
|
||||
|
||||
// ua detection
|
||||
if ($.browser.mozilla) {
|
||||
$('body').addClass('ff');
|
||||
} else if ($.browser.webkit) {
|
||||
@@ -12,4 +14,14 @@ $(document).ready(function() {
|
||||
$('body').addClass('ie8');
|
||||
}
|
||||
}
|
||||
|
||||
// no widows in wiki body
|
||||
if ($('#wiki-wrapper').hasClass('page')) {
|
||||
$('#template h1, #template h2, #template h3, #template h4, #template h5, #template h6, #template li, #template p').each(
|
||||
function(){
|
||||
$(this).html($(this).html().replace(/\s([^\s<]+)\s*$/,' $1'));
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user