public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js
function(nIndex) {
            var ePanelNode = this._panels[nIndex];
            if(!ePanelNode) {return false;} // invalid node
            if(YUD.hasClass(ePanelNode.firstChild, this.CLASSES.ACTIVE)) {return false;} // already open
            this._onClick(ePanelNode.firstChild);
            return true;
        }
function(nIndex) {
            var ePanelNode = this._panels[nIndex];
            if(!ePanelNode) {return false;} // invalid node
            if(YUD.hasClass(ePanelNode.firstChild, this.CLASSES.ACTIVE)) {return false;} // already open
            this._onClick(ePanelNode.firstChild);
            return true;
        }
function ( nIndex ) { var ePanelNode = this . _panels [ nIndex ] ; if ( ! ePanelNode ) { return false ; } // invalid node if ( YUD . hasClass ( ePanelNode . firstChild , this . CLASSES . ACTIVE ) ) { return false ; } // already open this . _onClick ( ePanelNode . firstChild ) ; return true ; }
Open a panel
@method openPanel
@param {Integer} nIndex The position of the Panel.
@return {Boolean} whether action resulted in opening a panel
that was previously closed
Open a panel