{"size": 866, "ext": "js", "max_stars_repo_path": "web/src/js/lib/widgets/RenderingToolbar.js", "max_stars_repo_name": "zenotech/cinema", "max_stars_repo_stars_event_min_datetime": "2015-03-27T17:37:57.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-31T16:43:42.000Z", "max_issues_repo_path": "web/src/js/lib/widgets/RenderingToolbar.js", "max_issues_repo_name": "zenotech/cinema", "max_issues_repo_issues_event_min_datetime": "2015-02-18T20:47:27.000Z", "max_issues_repo_issues_event_max_datetime": "2015-03-12T17:01:34.000Z", "max_forks_repo_path": "web/src/js/lib/widgets/RenderingToolbar.js", "max_forks_repo_name": "zenotech/cinema", "max_forks_repo_forks_event_min_datetime": "2015-03-18T01:00:25.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-31T16:43:42.000Z"}
{"max_stars_count": 13, "max_issues_count": 2, "max_forks_count": 4, "avg_line_length": 25.4705882353, "max_line_length": 69, "alphanum_fraction": 0.5046189376}
cinema.views.RenderingToolbar = Backbone.View.extend({
    events: {
        'click .c-edit-lookuptable': function () {
            cinema.events.trigger('c:editlookuptable');
        },

        'click .c-edit-lighting': function () {
            cinema.events.trigger('c:editlighting');
        },

        'click .c-view-fps-info': function () {
            cinema.events.trigger('c:viewfps');
        }
    },

    initialize: function (settings) {
        this.disabledList = settings.disabled;
    },

    render: function () {
        this.$el.html(cinema.templates.renderingToolbar({luts: []}));

        _.each(this.disabledList, function(elt, idx, l) {
            $('.' + elt).click();
            $('.' + elt).hide();
        });

        this.$('a[title]').tooltip({
            placement: 'bottom',
            delay: {show: 200}
        });
    }
});
