From ae0ec6304dfef838698558e4825d8310aea91b93 Mon Sep 17 00:00:00 2001 From: Frank Mullenger Date: Sat, 17 Dec 2011 17:58:58 +1300 Subject: [PATCH] BUGFIX: Fixes #6809. Updates page title heading when page title changes on edit page in CMS. --- javascript/CMSMain.EditForm.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/javascript/CMSMain.EditForm.js b/javascript/CMSMain.EditForm.js index 9c191369..72cec0bb 100644 --- a/javascript/CMSMain.EditForm.js +++ b/javascript/CMSMain.EditForm.js @@ -80,6 +80,7 @@ var self = this; this.bind('change', function(e) { + self.updatePageTitleHeading(); self.updateURLSegment(jQuery('.cms-edit-form input[name=URLSegment]')); // TODO We should really user-confirm these changes self.parents('form').find('input[name=MetaTitle], input[name=MenuTitle]').val(self.val()); @@ -87,6 +88,15 @@ this._super(); }, + + /** + * Function: updatePageTitleHeading + * + * Update the page title heading when page title changes + */ + updatePageTitleHeading: function() { + $('#page-title-heading').html(this.val()); + }, /** * Function: updateURLSegment