X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/image-organizer/imgorg/AlbumWin.js?ds=inline diff --git a/examples/image-organizer/imgorg/AlbumWin.js b/examples/image-organizer/imgorg/AlbumWin.js deleted file mode 100644 index 2e224704..00000000 --- a/examples/image-organizer/imgorg/AlbumWin.js +++ /dev/null @@ -1,65 +0,0 @@ -/*! - * Ext JS Library 3.1.1 - * Copyright(c) 2006-2010 Ext JS, LLC - * licensing@extjs.com - * http://www.extjs.com/license - */ -Imgorg.AlbumWin = Ext.extend(Ext.Window, { - title: 'Choose Album', - layout: 'fit', - closeAction: 'hide', - width: 300, - modal: true, - - initComponent: function() { - Ext.apply(this, { - items: [{ - autoHeight: true, - xtype: 'form', - id: 'album-select', - bodyStyle: 'padding:15px', - labelWidth: 50, - items: [{ - anchor: '95%', - fieldLabel: 'Album', - xtype: 'img-albumcombo', - name: 'album', - allowBlank: false - }] - }], - buttons: [{ - text: 'Add to Album', - handler: this.addToAlbum, - scope: this - },{ - text: 'Cancel', - handler: function() { - this.hide(); - }, - scope: this - }] - }); - Imgorg.AlbumWin.superclass.initComponent.call(this); - }, - - addToAlbum: function() { - var af = this.getComponent('album-select').getForm(); - if (af.isValid()) { - if (this.selectedRecords) { - var imageIds = []; - for (var i = 0; i < this.selectedRecords.length; i++) { - var r = this.selectedRecords[i]; - imageIds.push(r.data.dbid || r.data.id); - } - var fld = af.findField('album'); - var album = fld.getValue(); - - Imgorg.ss.Images.addToAlbum({ - images: imageIds, - album: album - }); - } - this.hide(); - } - } -});