Sha256: db876b591b54fd95d06b4514b9d11810e6d125cf8ab963f052573d9259714676

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

// Behavior for calendar (schedule) navigation.
;(function($){
    $.calnav = function(){
        $('.calnav .item[href]')
            .off('click')
            .on('click', function(e) {
                Application.showView(
                    $.deserialize(this.getAttribute('href'))
                );
            });

        // CFB2 only
        $('#calnav_dropdown').filterable();

        // CFB2 only
        var weekLabel = $id('week_label');
        if (weekLabel) {
            weekLabel.innerHTML = $id('calnav_dropdown').options[$id('calnav_dropdown').selectedIndex].text;
        }
    };
})(Zepto);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sports_db-0.2.3 app/assets/javascripts/plugins/calnav.js