X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/image-organizer/imgorg/ImagePanel.js
diff --git a/examples/image-organizer/imgorg/ImagePanel.js b/examples/image-organizer/imgorg/ImagePanel.js
deleted file mode 100644
index e1b8e938..00000000
--- a/examples/image-organizer/imgorg/ImagePanel.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/*!
- * Ext JS Library 3.1.1
- * Copyright(c) 2006-2010 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-Imgorg.ImagePanel = Ext.extend(Ext.Panel,{
- closable: true,
- border: false,
- tagTpl: new Ext.XTemplate(
- '
',
- '',
- '{text}
',
- ''
- ),
- albumTpl: new Ext.XTemplate(
- '',
- '',
- '{text}
',
- ''
- ),
- infoTpl: new Ext.XTemplate(
- '',
- 'Filename: {FileName}
',
- 'Size: {FileSize:fileSize}
',
- 'Height: {[values["COMPUTED"].Height]}
',
- 'Width: {[values["COMPUTED"].Width]}
'
- ),
- initComponent: function() {
- Ext.apply(this,{
- layout: 'border',
- items: [{
- border: false,
- region: 'center',
- html: '',
- autoScroll: true
- },{
- border: false,
- region: 'east',
- itemId: 'image-properties',
- width: 250,
- title: 'Properties',
- collapsible: true,
- style: 'border-left: 1px solid #99BBE8'
- }]
- });
- Imgorg.ImagePanel.superclass.initComponent.call(this);
- },
-
- afterRender: function() {
- Imgorg.ImagePanel.superclass.afterRender.call(this);
- Imgorg.ss.Images.getInfo({image: this.imageData.id}, this.onGetInfo, this);
- Imgorg.ss.Albums.getAlbums({image: this.imageData.id}, this.onGetAlbums,this);
- Imgorg.ss.Tags.getTags({image: this.imageData.id}, this.onGetTags, this);
- },
-
- onGetInfo: function(data, resp) {
- var prop = this.getComponent('image-properties');
- this.infoTpl.append(prop.body, data)
- },
-
- onGetTags: function(data, resp) {
- var prop = this.getComponent('image-properties');
- this.tagTpl.append(prop.body, data);
- },
-
- onGetAlbums: function(data, resp) {
- var prop = this.getComponent('image-properties');
- this.albumTpl.append(prop.body, data);
- }
-});
-Ext.reg('img-panel',Imgorg.ImagePanel);