"use strict";

var App = require('../app'),
    views = require('./views'),
    coreUtils= require('../core/utils');

var ProjectsController = {
    projects: function() {
        App.rootView.footerRegion.show(
            new views.ProjectsView()
        );

        App.rootView.layerPickerRegion.empty();

        App.state.set('active_page', coreUtils.projectsPageTitle);
    },

    projectsCleanUp: function() {
        App.rootView.footerRegion.empty();
        App.showLayerPicker();
    }
};

module.exports = {
    ProjectsController: ProjectsController
};

"use strict";

var App = require('../app'),
    views = require('./views'),
    coreUtils= require('../core/utils');

var ProjectsController = {
    projectsPrepare: function() {
        App.rootView.geocodeSearchRegion.empty();
    },

    projects: function() {
        App.rootView.footerRegion.show(
            new views.ProjectsView()
        );

        App.rootView.layerPickerRegion.empty();

        App.state.set('active_page', coreUtils.projectsPageTitle);
    },

    projectsCleanUp: function() {
        App.rootView.footerRegion.empty();
        App.showLayerPicker();
    }
};

module.exports = {
    ProjectsController: ProjectsController
};

Remove search bar when project page is launched
Remove search bar when project page is launched

Explicitly remove the search bar when the project page is launched. Some
pages remove this element when the page is navigated away from, but this
technique does not work for the splash page. I believe this is because
it is as the root url and does not have a route name.

Refs #1912
