partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 454af25b5f7d640103c028ac23c0f79d818a27f6
parent aff22f9d3624a20fcb58dcdec1d4b4c8f4ed8476
Author: Felicitus <felicitus@felicitus.org>
Date:   Tue,  5 Jul 2011 06:18:49 +0200

Added manufacturer icons

Diffstat:
Mfrontend/js/Components/Editor/EditorGrid.js | 7++++++-
Mfrontend/js/Components/Manufacturer/ManufacturerGrid.js | 4+++-
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/frontend/js/Components/Editor/EditorGrid.js b/frontend/js/Components/Editor/EditorGrid.js @@ -16,6 +16,11 @@ Ext.define('PartKeepr.EditorGrid', { deleteButtonText: i18n("Delete Item"), /** + * @cfg {String} text The path to the 'delete' icon + */ + deleteButtonIcon: 'resources/silkicons/delete.png', + + /** * @cfg {String} text The text for the "add" button */ addButtonText: i18n("Add Item"), @@ -76,7 +81,7 @@ Ext.define('PartKeepr.EditorGrid', { this.deleteButton = Ext.create("Ext.button.Button", { text: (this.buttonTextMode !== "hide") ? this.deleteButtonText : '', tooltip: this.deleteButtonText, - icon: 'resources/silkicons/delete.png', + icon: this.deleteButtonIcon, handler: Ext.bind(function () { this.fireEvent("itemDelete"); }, this), diff --git a/frontend/js/Components/Manufacturer/ManufacturerGrid.js b/frontend/js/Components/Manufacturer/ManufacturerGrid.js @@ -5,5 +5,7 @@ Ext.define('PartKeepr.ManufacturerGrid', { {header: i18n("Manufacturer"), dataIndex: 'name', flex: 1} ], addButtonText: i18n("Add Manufacturer"), - deleteButtonText: i18n("Delete Manufacturer") + addButtonIcon: 'resources/silkicons/building_add.png', + deleteButtonText: i18n("Delete Manufacturer"), + deleteButtonIcon: 'resources/silkicons/building_delete.png' }); \ No newline at end of file