error on v1.0.1
git-svn-id: https://plugins.svn.wordpress.org/pagemash/trunk@34811 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
e26d2a4f81
commit
8a7b00f772
15
pagemash.php
15
pagemash.php
|
@ -354,13 +354,14 @@ window.addEvent('domready', function(){
|
||||||
});
|
});
|
||||||
|
|
||||||
//disable drag text-selection
|
//disable drag text-selection
|
||||||
if (typeof target.style.MozUserSelect!="undefined")
|
var target = document.body;
|
||||||
document.body.style.MozUserSelect="none"; //for Mozilla
|
if (typeof target.onselectstart!="undefined") //for IE
|
||||||
else if (typeof target.onselectstart!="undefined")
|
target.onselectstart=function(){return false}
|
||||||
document.body.onselectstart=function(){return false} //for IE
|
else if (typeof target.style.MozUserSelect!="undefined") //for mozilla
|
||||||
else
|
target.style.MozUserSelect="none"
|
||||||
document.body.onmousedown=function(){return false} //for safari, opera, etc
|
else //for safari, opera, etc
|
||||||
}
|
target.onmousedown=function(){return false}
|
||||||
|
|
||||||
|
|
||||||
}); /* close dom ready */
|
}); /* close dom ready */
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue