diff --git a/lib/client/dom.js b/lib/client/dom.js index 54dd5834..b011c895 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -1238,11 +1238,17 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; * @param options = {active: true} */ this.getPanel = function(options) { - var dataName = 'js-', - current = this.getCurrentFile(), + var files, panel, isLeft, + dataName = 'js-', + current = this.getCurrentFile(); + + if (!current) { + panel = this.getByDataName('left'); + } else { files = current.parentElement, panel = files.parentElement, isLeft = panel.getAttribute('data-name') === 'js-left'; + } /* if {active : false} getting passive panel */ if (options && !options.active) {