forked from leftypol/leftypol
Disable inline-expanding for non-images
This commit is contained in:
parent
cbb1bc1031
commit
0bad03d3a2
4 changed files with 40 additions and 15 deletions
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue