diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-09-25 09:27:40 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-09-25 09:27:40 +0200 |
commit | 7e4e38eb0a22e35382c5ef897d7351323e4f4887 (patch) | |
tree | 45e06eb58a66a0f6ae7bfe4aa045b00ea97eb0bc /lib/scripts/behaviour.js | |
parent | ba18c46681e5a6b3de65bc71a29aa2d04b54870b (diff) | |
download | dokuwiki-7e4e38eb0a22e35382c5ef897d7351323e4f4887.tar.gz dokuwiki-7e4e38eb0a22e35382c5ef897d7351323e4f4887.zip |
Fixed the Windows share warning (related to #2274)
Diffstat (limited to 'lib/scripts/behaviour.js')
-rw-r--r-- | lib/scripts/behaviour.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index fc32d4ed9..20b408322 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -72,13 +72,13 @@ var dw_behaviour = { * @author Michael Klier <chi@chimeric.de> */ checkWindowsShares: function() { - if(!LANG.nosmblinks || document.all !== null) { + if(!LANG.nosmblinks || typeof(document.all) !== 'undefined') { // No warning requested or none necessary return; } jQuery('a.windows').live('click', function(){ - alert(LANG.nosmblinks); + alert(LANG.nosmblinks.replace(/\\n/,"\n")); }); }, |