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