Sha256: 9ffc945624ad18acbea5308a1273f851ab474b4102f8d741ebc06781797b0925

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

Ext.define("Compass.ErpApp.Desktop.Applications.AuditLogViewer", {
    extend: "Ext.ux.desktop.Module",
    id: 'audit_log_viewer-win',
    init: function () {
        this.launcher = {
            text: 'audit_log_viewer',
            iconCls: 'icon-history',
            handler: this.createWindow,
            scope: this
        }
    },

    createWindow: function () {
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('audit_log_viewer');
        if (!win) {

            var container = Ext.create('widget.auditlogtabpanel', {
                showToolbar: true
            });

            win = desktop.createWindow({
                id: 'audit_log_viewer',
                title: 'Audit Log Viewer',
                layout: 'fit',
                autoScroll: true,
                width: 1000,
                height: 540,
                iconCls: 'icon-history',
                shim: false,
                animCollapse: false,
                constrainHeader: true,
                items: [container]
            });
        }
        win.show();
    }
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_app-4.0.0 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js