CiviWiki/OpenCiviWiki

View on GitHub
project/core/templates/static/js/static/landing_view.js

Summary

Maintainability
C
7 hrs
Test Coverage
cw = cw || {};

cw.LandingView = BB.View.extend({
    el: '#landing',
    landingTemplate: _.template($('#landing-template').html()),

    initialize: function () {
        this.render();
    },

    render: function () {
        this.$el.empty().append(this.landingTemplate());

        this.setupStaticNav();
    },

    setupStaticNav: function () {
        $('.button-collapse').sideNav();
        $('.collapsible').collapsible();
        $('.sideNav').css('display', 'inherit');
    }
});