chorus.dialogs.TabularDataPreview = chorus.dialogs.Base.extend({
    constructorName: "TabularDataPreview",

    templateName: 'tabular_data_preview',
    title: function() {return t("dataset.data_preview_title", {name: this.model.get("objectName")}); },

    events: {
        "click button.cancel": "cancelTask"
    },

    subviews: {
        '.results_console': 'resultsConsole'
    },

    setup: function() {
        _.bindAll(this, 'title');
        this.resultsConsole = new chorus.views.ResultsConsole({
            footerSize: _.bind(this.footerSize, this), 
            showDownloadDialog: true,
            tabularData: this.model
            enableResize: true,
            enableExpander: true
        });
        this.closePreviewHandle = chorus.PageEvents.subscribe("action:closePreview", this.closeModal, this);
        this.modalClosedHandle = chorus.PageEvents.subscribe("modal:closed", this.cancelTask, this);
    },

    footerSize: function() {
        return this.$('.modal_controls').outerHeight(true);
    },

    postRender: function() {
        this.task = this.model.preview();
        this.resultsConsole.execute(this.task);
    },

    cancelTask: function(e) {
        this.task && this.task.cancel();
        chorus.PageEvents.unsubscribe(this.modalClosedHandle);
    },

    close: function() {
        chorus.PageEvents.unsubscribe(this.closePreviewHandle);
    }
});

chorus.dialogs.TabularDataPreview = chorus.dialogs.Base.extend({
    constructorName: "TabularDataPreview",

    templateName: 'tabular_data_preview',
    title: function() {return t("dataset.data_preview_title", {name: this.model.get("objectName")}); },

    events: {
        "click button.cancel": "cancelTask"
    },

    subviews: {
        '.results_console': 'resultsConsole'
    },

    setup: function() {
        _.bindAll(this, 'title');
        this.resultsConsole = new chorus.views.ResultsConsole({
            footerSize: _.bind(this.footerSize, this),
            showDownloadDialog: true,
            tabularData: this.model,
            enableResize: true,
            enableExpander: true
        });
        this.closePreviewHandle = chorus.PageEvents.subscribe("action:closePreview", this.closeModal, this);
        this.modalClosedHandle = chorus.PageEvents.subscribe("modal:closed", this.cancelTask, this);
    },

    footerSize: function() {
        return this.$('.modal_controls').outerHeight(true);
    },

    postRender: function() {
        this.task = this.model.preview();
        this.resultsConsole.execute(this.task);
    },

    cancelTask: function(e) {
        this.task && this.task.cancel();
        chorus.PageEvents.unsubscribe(this.modalClosedHandle);
    },

    close: function() {
        chorus.PageEvents.unsubscribe(this.closePreviewHandle);
    }
});

Fix missing comma in tabular data preview
Fix missing comma in tabular data preview
