mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
added ability to pass checkExtension function array of extensions
This commit is contained in:
parent
edde810a74
commit
dc49740c08
2 changed files with 18 additions and 13 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue