commit 1727b773c53f57f5a0df0c3900c2039f687adc74
parent 5e25c1d9d5ef14696cc9dfbe254dae16eea6e24f
Author: Felicitus <felicitus@felicitus.org>
Date: Wed, 2 Jan 2013 09:49:25 +0100
Added tooltip for the attachment column
Diffstat:
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/frontend/js/Components/Manufacturer/ManufacturerEditor.js b/src/frontend/js/Components/Manufacturer/ManufacturerEditor.js
@@ -6,16 +6,14 @@ Ext.define('PartKeepr.ManufacturerEditor', {
initComponent: function () {
this.on("startEdit", Ext.bind(this.onEditStart, this));
- this.tpl = [
+ this.tpl = new Ext.XTemplate(
'<tpl for=".">',
'<div class="thumb-wrap" id="{id}">',
- '<div class="thumb"><img src="image.php?type=iclogo&id={id}&w=64&h=64&tmpId={tmp_id}"></div>',
+ '<div class="thumb"><img src="image.php?type=iclogo&id={id}&w=64&h=64&tmpId={tmp_id}"/></div>',
'</div>',
'</tpl>',
- '</tpl>',
- '<div class="x-clear"></div>'
- ];
-
+ '<div class="x-clear"></div>');
+
this.addLogoButton = Ext.create("Ext.button.Button", {
icon: "resources/silkicons/add.png",
text: i18n("Add Logo"),
@@ -51,7 +49,6 @@ Ext.define('PartKeepr.ManufacturerEditor', {
this.deleteLogoButton.disable();
}
}, this)
- //this.onLogoSelectionChange.createDelegate(this)
}
});