Sha256: a34f412a1586880b7ae60c062b0b8a87ffa0de9f64286d6b02572dfedec12cd3

Contents?: true

Size: 1.52 KB

Versions: 25

Compression:

Stored size: 1.52 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('Compass.ErpApp.Desktop.Applications.AuditLogViewer.TabPanel');

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

            //had to add the docked item after it was created.  Was throwing style error????
            container.down('audit_log_viewer-audit_log_grid').addDocked({
                xtype:'pagingtoolbar',
                store:Ext.getStore('audit-log-view-audit-log-entry-store'),
                dock:'bottom',
                displayInfo:true
            });

            //load the grid store
            container.down('audit_log_viewer-audit_log_grid').getStore().load({params:{start:0}});
        }
        win.show();
    }
});

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
erp_app-3.1.16 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.15 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.14 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.13 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.12 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.11 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.10 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.9 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.8 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.7 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.6 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.5 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.4 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.3 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.2 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.0.16 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.0.15 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.1 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.1.0 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js
erp_app-3.0.14 public/javascripts/erp_app/desktop/applications/audit_log_viewer/module.js