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.TagWindow = Ext.extend(Ext.Window, {
15 initComponent: function() {
21 bodyStyle: 'padding:15px',
26 xtype: 'img-tagcombo',
33 handler: this.tagImages,
43 Imgorg.TagWindow.superclass.initComponent.call(this);
47 tagImages: function() {
48 var af = this.getComponent('tag-select').getForm();
50 if (this.selectedRecords) {
52 for (var i = 0; i < this.selectedRecords.length; i++) {
53 var r = this.selectedRecords[i];
54 imageIds.push(r.data.dbid || r.data.id);
56 var fld = af.findField('tag');
57 var tag = fld.getRawValue();
58 var idx = fld.store.find('text', tag);
60 rec = fld.store.getAt(idx);
63 Imgorg.ss.Images.tagImage({