3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">Imgorg.DirectCombo = Ext.extend(Ext.form.ComboBox, {
16 initComponent: function() {
17 this.store = new Ext.data.DirectStore(Ext.apply({
20 fields: this.fields || ['text', 'id']
21 }, this.storeConfig));
23 Imgorg.DirectCombo.superclass.initComponent.call(this);
27 Imgorg.TagCombo = Ext.extend(Imgorg.DirectCombo,{
28 forceSelection: false,
32 initComponent: function() {
33 Ext.apply(this.storeConfig, {
34 directFn: Imgorg.ss.Tags.load
36 Imgorg.TagCombo.superclass.initComponent.call(this);
39 Ext.reg('img-tagcombo', Imgorg.TagCombo);
41 Imgorg.TagMultiCombo = Ext.extend(Ext.ux.MultiCombo,{
42 listClass: 'label-combo',
46 initComponent: function() {
47 this.store = new Ext.data.DirectStore(Ext.apply({
48 directFn: Imgorg.ss.Tags.load,
51 fields: this.fields || ['text', 'id']
52 }, this.storeConfig));
53 this.plugins =new Ext.ux.MultiCombo.Checkable({});
54 Imgorg.DirectCombo.superclass.initComponent.call(this);
57 Ext.reg('img-tagmulticombo', Imgorg.TagMultiCombo);
59 Imgorg.AlbumCombo = Ext.extend(Imgorg.DirectCombo, {
63 initComponent: function() {
64 Ext.apply(this.storeConfig, {
65 directFn: Imgorg.ss.Albums.getAllInfo
67 Imgorg.AlbumCombo.superclass.initComponent.call(this);
70 Ext.reg('img-albumcombo', Imgorg.AlbumCombo);