Better/fixed jQuery styling and slightly improved js/inline-expanding.js accuracy (when jQuery is enabled)

This commit is contained in:
Michael Foster 2013-08-01 00:27:54 -04:00
parent a052a791b5
commit 5bf0e7f7e7
2 changed files with 25 additions and 8 deletions

View file

@ -17,6 +17,9 @@ onready(function(){
for (var i = 0; i < link.length; i++) {
if (typeof link[i] == "object" && link[i].childNodes && typeof link[i].childNodes[0] !== 'undefined' && link[i].childNodes[0].src && link[i].className != 'file') {
if (window.jQuery && !$(link).prev().hasClass('fileinfo')) {
continue;
}
link[i].childNodes[0].style.maxWidth = '95%';
link[i].onclick = function(e) {
if (this.childNodes[0].className == 'hidden')