mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
Update client.js
This commit is contained in:
parent
1c63eaea19
commit
a2a1e0f7bd
1 changed files with 8 additions and 8 deletions
16
client.js
16
client.js
|
|
@ -446,19 +446,19 @@ CloudClient.Util = (function(){
|
|||
var lPanel;
|
||||
|
||||
lPanel = lThis.getCurrentFile().parentElement;
|
||||
|
||||
/* if two panels showed
|
||||
* then always work with passive
|
||||
* panel
|
||||
*/
|
||||
if(window.innerWidth > CloudCommander.MIN_ONE_PANEL_WIDTH)
|
||||
pActive = {active: false};
|
||||
|
||||
|
||||
/* if {active : false} getting passive panel */
|
||||
if(pActive && !pActive.active){
|
||||
var lId = lPanel.id === 'left' ? 'right' : 'left';
|
||||
lPanel = lThis.getById(lId);
|
||||
}
|
||||
|
||||
/* if two panels showed
|
||||
* then always work with passive
|
||||
* panel
|
||||
*/
|
||||
if(window.innerWidth < CloudCommander.MIN_ONE_PANEL_WIDTH)
|
||||
lPanel = lThis.getById('left');
|
||||
|
||||
|
||||
if(!lPanel)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue