commit 15e6698d6df2cdf22fb5ce698953e457792fdb68
parent 3fd25e99e7bbd66d8e1964890bdf197b21560859
Author: Felicitus <felicitus@felicitus.org>
Date: Mon, 3 Aug 2015 19:30:58 +0200
Reworked setTitle to set the window title instead if the panel's title
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
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
@@ -437,7 +437,7 @@ Ext.define('PartKeepr.PartEditor', {
this.partParameterGrid.bindStore(this.record.parameters());
this.partAttachmentGrid.bindStore(this.record.attachments());
},
- _setTitle: function (title) {
+ setTitle: function (title) {
var tmpTitle;
if (this.record.phantom) {
@@ -450,6 +450,6 @@ Ext.define('PartKeepr.PartEditor', {
tmpTitle = tmpTitle + ": " + title;
}
- this.fireEvent("titleChange", tmpTitle);
+ this.fireEvent("_titleChange", tmpTitle);
}
});
diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditorWindow.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditorWindow.js
@@ -53,7 +53,7 @@ Ext.define('PartKeepr.PartEditorWindow', {
*/
this.editor.on("editorClose", function (context) { this.close();}, this, { delay: 200 });
- this.editor.on("titleChange", function (val) { this.setTitle(val); }, this);
+ this.editor.on("_titleChange", function (val) { this.setTitle(val); }, this);
this.editor.on("itemSaved", this.onItemSaved, this);
this.saveButton = Ext.create("Ext.button.Button", {