Disable inline-expanding for non-images
This commit is contained in:
2
main.js
2
main.js
@@ -134,7 +134,7 @@ function rememberStuff() {
|
||||
function init_expanding() {
|
||||
link = document.getElementsByTagName('a');
|
||||
for ( i in link ) {
|
||||
if(typeof link[i] == "object" && link[i].childNodes[0].src) {
|
||||
if(typeof link[i] == "object" && link[i].childNodes[0].src && link[i].className != 'file') {
|
||||
link[i].onclick = function(e) {
|
||||
if(e.which == 2) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user