Skip to content
Snippets Groups Projects
Commit dc62d03d authored by Andreas Gohr's avatar Andreas Gohr
Browse files

optimized SMB link warning thingy

parent 28f6aae1
No related branches found
No related tags found
No related merge requests found
...@@ -482,14 +482,14 @@ addInitEvent(function(){ ...@@ -482,14 +482,14 @@ addInitEvent(function(){
*/ */
function checkWindowsShares() { function checkWindowsShares() {
if(!LANG['nosmblinks']) return true; if(!LANG['nosmblinks']) return true;
if(document.all != null) return true;
var elems = getElementsByClass('windows',document,'a'); var elems = getElementsByClass('windows',document,'a');
if(elems){ if(elems){
for(var i=0; i<elems.length; i++){ for(var i=0; i<elems.length; i++){
var share = elems[i]; var share = elems[i];
addEvent(share,'click',function(){ addEvent(share,'click',function(){
if(document.all == null) { alert(LANG['nosmblinks']);
alert(LANG['nosmblinks']);
}
}); });
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment