mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 10:09:04 +00:00
added getCurrentFile and getPanel functions
This commit is contained in:
parent
cc76ff8d86
commit
b4f3498dc2
1 changed files with 3 additions and 10 deletions
|
|
@ -68,10 +68,7 @@ CloudCommander.Viewer.FancyBox.set = (function(){
|
|||
return;
|
||||
try{
|
||||
/* get current panel (left or right) */
|
||||
var lPanel = this.getByClass('current-file');
|
||||
|
||||
lPanel.length &&
|
||||
(lPanel = lPanel[0].parentElement);
|
||||
var lPanel = this.getPanel();
|
||||
|
||||
/* get all file links */
|
||||
var lA = lPanel.getElementsByTagName('a');
|
||||
|
|
@ -96,12 +93,8 @@ CloudCommander.Viewer.FancyBox.set = (function(){
|
|||
CloudCommander.Viewer.FancyBox.show = (function(pParent){
|
||||
CloudCommander.Viewer.FancyBox.set();
|
||||
|
||||
var lCurrent = this.getByClass('current-file');
|
||||
lCurrent.length &&
|
||||
(lCurrent = lCurrent[0]);
|
||||
|
||||
var lA = lCurrent.getElementsByClassName('fancybox');
|
||||
|
||||
var lCurrent = this.getCurrentFile();
|
||||
var lA = lCurrent.getElementsByClassName('fancybox');
|
||||
var lConfig = this.getConfig();
|
||||
|
||||
lA.length &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue