added beforeLoad property

This commit is contained in:
coderaiser 2012-07-25 10:12:25 -04:00
parent 7417903fe7
commit ae988a3ff3

View file

@ -48,7 +48,8 @@ CloudCommander.Viewer.FancyBox = {
var lA = lPanel.getElementsByTagName('a');
var lName;
for (var i=0; i < lA.length; i++) {
/* first two is not files nor folders*/
for (var i=2; i < lA.length; i++) {
lName = lA[i].title || lA[i].textContent;
CloudFunc.checkExtension(lName,['png','jpg']) &&