Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- News.combo.Repository = function (config) {
- config = config || {};
- Ext.applyIf(config, {
- name: 'gallery',
- fieldLabel: _('news_item_gallery'),
- hiddenName: 'gallery',
- displayField: 'name',
- valueField: 'id',
- anchor: '99%',
- fields: ['name', 'id'],
- pageSize: 20,
- url: News.config['connector_url'],
- typeAhead: true,
- editable: true,
- allowBlank: true,
- //emptyText: _('no'),
- minChars: 1,
- baseParams: {
- action: 'mgr/gallery/getlist',
- combo: true,
- id: config.value,
- }
- });
- News.combo.Repository.superclass.constructor.call(this, config);
- this.on('expand', function () {
- if (!!this.pageTb) {
- this.pageTb.show();
- }
- });
- };
- Ext.extend(News.combo.Repository, MODx.combo.ComboBox);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement