/**
 *
 * Docbase engine
 * Appbase
 * MIT license
 */

(function($, angular) {
    /*
     * Scrollspy.
     */
    $(function() {
        $("h2, h3").scrollagent(function(cid, pid, currentElement, previousElement) {
            if (pid) {
                $("[href*='#" + pid + "']").removeClass('active');
            }
            if (cid) {
                $("[href*='#" + cid + "']").addClass('active');
            }
        });
    });
})(window.jQuery, window.angular);

/**
 *
 * Docbase engine
 * Appbase
 * MIT license
 */

(function($, angular) {
    /*
     * Scrollspy.
     */
    $(function() {
        $("h2, h3").scrollagent(function(cid, pid, currentElement, previousElement) {
            if (pid) {
                $("[pref='#" + pid + "']").removeClass('active');
            }
            if (cid) {
                $("[pref='#" + cid + "']").addClass('active');
            }
        });
    });
})(window.jQuery, window.angular);

Fix left navigation selector issue
Fix left navigation selector issue
