0

I'd like to see a drop down menu to quickly navigate to the various projects I have access to.

flag
You can work around it by saving a filter for every project. – Michel de Ruiter Jul 16 at 10:25

1 Answer

1

Here's a BugMonkey customization that will add a "Projects" dropdown to the main navigation bar with one link for each of your projects:

name:          'Projects' main menu
description:   Adds a 'Projects' menu to the main navigation bar
author:        Dane Bertram
version:       1.0.0.0

js:

var nav = $('#mainnav');

var menu = $('<a>')
    .addClass('navlink menu')
    .attr('href', '#')
    .text('Projects')
    .append($('#Menu_Filter > img').clone())
    .on('click', function() {
        return theMgr.showPopup('projectFilterPopup', this, 0, this.offsetHeight + 2, null, true)
        || KeyManager.browseMenus('mainnav')
        || KeyManager.oMenuBrowser.setElCurrent(this)
        || KeyManager.browsePopup('projectFilterPopup');;
    })
    .appendTo(nav);

var popup = $('#filterPopup')
    .clone(false)
    .attr('id', 'projectFilterPopup')
    .appendTo(nav);

var linkDiv = popup.find('div:first').empty();

$.each(DB.Project, function(ix, project) {
    $('<a>')
        .attr('href', 'default.asp?pre=preSaveFilterProject&ixProject=' + project.ixProject)
        .text(project.sProject)
        .on('click', function() {
            return doPopupClick();
        })
        .appendTo(linkDiv);
});

theMgr.add('projectFilterPopup');
link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.