Sha256: c117641b85f689b377871a1538a9e0624b5413a127b412551e71e56ebf4280ec

Contents?: true

Size: 1.66 KB

Versions: 25

Compression:

Stored size: 1.66 KB

Contents

Ext.define("Compass.ErpApp.Desktop.Applications.AuditLogViewer.TabPanel", {
    alias:'widget.audit_log_viewer-tabpanel',
    extend:"Ext.tab.Panel",
    autoScroll:true,
    items:[{xtype:'audit_log_viewer-audit_log_grid'}],
    plugins:Ext.create('Ext.ux.TabCloseMenu', {
        extraItemsTail:[
            '-',
            {
                text:'Closable',
                checked:true,
                hideOnClick:true,
                handler:function (item) {
                    currentItem.tab.setClosable(item.checked);
                }
            }
        ],
        listeners:{
            aftermenu:function () {
                currentItem = null;
            },
            beforemenu:function (menu, item) {
                var menuitem = menu.child('*[text="Closable"]');
                currentItem = item;
                menuitem.setChecked(item.closable);
            }
        }
    }),
    listeners:{
        auditLogEntrySelected:function (auditLogEntry) {
            var audit_log_item_grid = Ext.create('Compass.ErpApp.Desktop.Applications.AuditLogViewer.AuditLogItemGrid',
                {
                    closable:true,
                    listeners:{
                        'afterrender':function(comp){
                            comp.getStore().load({params:{audit_log_id:auditLogEntry.get('id')}});
                        }
                    }
                }
            );
            this.add(audit_log_item_grid);
            this.setActiveTab(audit_log_item_grid);
        }
    },
    constructor:function (config) {
        this.addEvents({
            'auditLogEntrySelected':true
        });

        this.callParent([config]);
    }
});

Version data entries

25 entries across 25 versions & 1 rubygems

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