Skip to content

Commit

Permalink
Remove Unused Window Config for Lexicons Grid (#16392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Graham committed Mar 27, 2023
1 parent fbff4df commit 69a7d6d
Showing 1 changed file with 0 additions and 65 deletions.
65 changes: 0 additions & 65 deletions manager/assets/modext/workspace/lexicon/lexicon.grid.js
Expand Up @@ -324,71 +324,6 @@ Ext.extend(MODx.grid.Lexicon,MODx.grid.Grid,{
});
Ext.reg('modx-grid-lexicon',MODx.grid.Lexicon);


/**
* Generates the export lexicon window.
*
* @class MODx.window.ExportLexicon
* @extends MODx.Window
* @param {Object} config An object of options.
* @xtype modx-window-lexicon-export
*/
MODx.window.ExportLexicon = function(config) {
config = config || {};
this.ident = config.ident || 'explex'+Ext.id();
var r = config.record;
Ext.applyIf(config,{
title: _('export')
,url: MODx.config.connector_url
,action: 'workspace/lexicon/export'
,fileUpload: true
,fields: [{
html: _('lexicon_export_desc')
,border: false
,bodyStyle: 'margin: 10px;'
,id: 'modx-'+this.ident+'-desc'
,itemId: 'desc'
,anchor: '100%'
},{
xtype: 'modx-combo-namespace'
,fieldLabel: _('namespace')
,name: 'namespace'
,id: 'modx-'+this.ident+'-namespace'
,itemId: 'namespace'
,anchor: '100%'
,listeners: {
'select': {fn: function(cb,r,i) {
cle = this.fp.getComponent('topic');
if (cle) {
cle.store.baseParams['namespace'] = cb.getValue();
cle.setValue('');
cle.store.reload();
} else {MODx.debug('cle not found');}
},scope:this}
}
},{
xtype: 'modx-combo-lexicon-topic'
,fieldLabel: _('topic')
,name: 'topic'
,id: 'modx-'+this.ident+'-topic'
,itemId: 'topic'
,anchor: '100%'
},{
xtype: 'modx-combo-language'
,fieldLabel: _('language')
,name: 'language'
,id: 'modx-'+this.ident+'-language'
,itemId: 'language'
,anchor: '100%'
}]
});
MODx.window.ExportLexicon.superclass.constructor.call(this,config);
};
Ext.extend(MODx.window.ExportLexicon,MODx.Window);
Ext.reg('modx-window-lexicon-export',MODx.window.ExportLexicon);



MODx.window.LexiconEntryCreate = function(config) {
config = config || {};
this.ident = config.ident || 'lexentc'+Ext.id();
Expand Down

0 comments on commit 69a7d6d

Please sign in to comment.