added ability to pass checkExtension function array of extensions

This commit is contained in:
coderaiser 2012-07-25 05:15:36 -04:00
parent edde810a74
commit dc49740c08
2 changed files with 18 additions and 13 deletions

View file

@ -20,7 +20,7 @@ CloudCommander.Viewer.FuncyBox = {
});
},
show: function(){
set: function(){
try{
/* get current panel (left or right) */
var lPanel = this.getByClass('current-file');
@ -35,7 +35,7 @@ CloudCommander.Viewer.FuncyBox = {
for (var i=0; i < lA.length; i++) {
lName = lA[i].title || lA[i].textContent;
CloudFunc.checkExtension(lName,'png') &&
CloudFunc.checkExtension(lName,['png','jpg']) &&
(lA[i].className = 'fancybox');
}
}catch(pError){