diff options
Diffstat (limited to 'lib/scripts')
-rw-r--r-- | lib/scripts/script.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/scripts/script.js b/lib/scripts/script.js index 29d3e5db0..8c9327b1f 100644 --- a/lib/scripts/script.js +++ b/lib/scripts/script.js @@ -533,3 +533,30 @@ addInitEvent(function(){ $('action__selectorbtn').style.display = 'none'; }); +/** + * Display error for Windows Shares on browsers other than IE + * + * Michael Klier <chi@chimeric.de> + */ +function checkWindowsShares() { + var elems = getElementsByClass('windows',document,'a'); + if(elems){ + for(var i=0; i<elems.length; i++){ + var share = elems[i]; + addEvent(share,'click',function(){ + if(document.all == null) { + alert(LANG['nosmblinks']); + } + }); + } + } +} + +/** + * Add the event handler for the Windows Shares check + * + * Michael Klier <chi@chimeric.de> + */ +addInitEvent(function(){ + checkWindowsShares(); +}); |