partkeepr

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

commit 09f0385b97805d566e2f035921cdaff076f72f0e
parent 928221e0ef3330aa9313cf65619c223d57a06549
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon,  8 Jun 2015 22:05:08 +0200

Update the title after an item has been saved

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Editor/Editor.js | 10++++------
1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Editor/Editor.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Editor/Editor.js @@ -85,9 +85,9 @@ Ext.define('PartKeepr.Editor', { this.getForm().loadRecord(this.record); this.show(); if (this.record.get("name") !== "") { - this._setTitle(this.record.get("name")); + this.setTitle(this.record.get("name")); } - + this.change = false; this.fireEvent("startEdit", this); }, @@ -126,9 +126,7 @@ Ext.define('PartKeepr.Editor', { this.record = record; this.fireEvent("itemSaved", this.record); } - }, - _setTitle: function (title) { - // Not sure why this was here - in ExtJS 4.1, this creates a title bar, which we do not want. - //this.setTitle(title); + + this.editItem(record); } });