3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
7 Imgorg.DirectCombo = Ext.extend(Ext.form.ComboBox, {
15 initComponent: function() {
16 this.store = new Ext.data.DirectStore(Ext.apply({
19 fields: this.fields || ['text', 'id']
20 }, this.storeConfig));
22 Imgorg.DirectCombo.superclass.initComponent.call(this);
26 Imgorg.TagCombo = Ext.extend(Imgorg.DirectCombo,{
27 forceSelection: false,
31 initComponent: function() {
32 Ext.apply(this.storeConfig, {
33 directFn: Imgorg.ss.Tags.load
35 Imgorg.TagCombo.superclass.initComponent.call(this);
38 Ext.reg('img-tagcombo', Imgorg.TagCombo);
40 Imgorg.TagMultiCombo = Ext.extend(Ext.ux.MultiCombo,{
41 listClass: 'label-combo',
45 initComponent: function() {
46 this.store = new Ext.data.DirectStore(Ext.apply({
47 directFn: Imgorg.ss.Tags.load,
50 fields: this.fields || ['text', 'id']
51 }, this.storeConfig));
52 this.plugins =new Ext.ux.MultiCombo.Checkable({});
53 Imgorg.DirectCombo.superclass.initComponent.call(this);
56 Ext.reg('img-tagmulticombo', Imgorg.TagMultiCombo);
58 Imgorg.AlbumCombo = Ext.extend(Imgorg.DirectCombo, {
62 initComponent: function() {
63 Ext.apply(this.storeConfig, {
64 directFn: Imgorg.ss.Albums.getAllInfo
66 Imgorg.AlbumCombo.superclass.initComponent.call(this);
69 Ext.reg('img-albumcombo', Imgorg.AlbumCombo);