mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX: Fixes #6809. Updates page title heading when page title changes on edit page in CMS.
This commit is contained in:
parent
28dff0107a
commit
ae0ec6304d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user