commit df503118a55841348fe76728a5fb928703dfe4a0
parent e3c9f6a7de271ca92b1b01c6a97bc1edc8bf50a3
Author: Felicitus <felicitus@felicitus.org>
Date: Sat, 28 Nov 2015 16:29:06 +0100
Fixed internal ID display
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js
@@ -174,7 +174,11 @@ Ext.define('PartKeepr.PartEditor', {
}, {
xtype: 'displayfield',
fieldLabel: i18n("Internal ID"),
- name: 'id'
+ name: '@id',
+ renderer: function (value) {
+ var values = value.split("/");
+ return values[values.length-1];
+ }
}
]