From 314dc49af8e067bba50c81e595e8c56812d262fa Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 9 Feb 2010 16:58:53 +0000 Subject: [PATCH] Fix up r62154: don't throw a JS error when $j is undefined, and bump $wgStyleVersion --- includes/DefaultSettings.php | 2 +- skins/common/edit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 2a34bce41c..79ec6b9c4b 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1686,7 +1686,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches do not keep obsolete copies of global * styles. */ -$wgStyleVersion = '265'; +$wgStyleVersion = '266'; # Server-side caching: diff --git a/skins/common/edit.js b/skins/common/edit.js index c2d1e2173a..8001164a88 100644 --- a/skins/common/edit.js +++ b/skins/common/edit.js @@ -78,7 +78,7 @@ function mwSetupToolbar() { // apply tagOpen/tagClose to selection in textarea, // use sampleText instead of selection if there is none function insertTags( tagOpen, tagClose, sampleText ) { - if ( typeof $j.fn.textSelection != 'undefined' ) { + if ( typeof $j != 'undefined' && typeof $j.fn.textSelection != 'undefined' ) { $j( '#wpTextbox1' ).textSelection( 'encapsulateSelection', { 'pre': tagOpen, 'peri': sampleText, 'post': tagClose } ); -- 2.20.1