3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
7 Imgorg.AlbumWin = Ext.extend(Ext.Window, {
14 initComponent: function() {
20 bodyStyle: 'padding:15px',
25 xtype: 'img-albumcombo',
32 handler: this.addToAlbum,
42 Imgorg.AlbumWin.superclass.initComponent.call(this);
45 addToAlbum: function() {
46 var af = this.getComponent('album-select').getForm();
48 if (this.selectedRecords) {
50 for (var i = 0; i < this.selectedRecords.length; i++) {
51 var r = this.selectedRecords[i];
52 imageIds.push(r.data.dbid || r.data.id);
54 var fld = af.findField('album');
55 var album = fld.getValue();
57 Imgorg.ss.Images.addToAlbum({