Set page title on edit_embed
This commit is contained in:
parent
053848607d
commit
6f0a03ce60
@ -86,14 +86,14 @@ script(type="text/javascript").
|
|||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
$('#tags').select2();
|
$('#tags').select2();
|
||||||
});
|
|
||||||
|
|
||||||
var convert = new Markdown.getSanitizingConverter();
|
page_title = 'Edit: {{ node.name }} — {{ project.name }}';
|
||||||
Markdown.Extra.init(convert);
|
updateTitle(unread_on_load, page_title);
|
||||||
convert = convert.makeHtml;
|
|
||||||
|
|
||||||
/* Build the markdown preview when typing in textarea */
|
/* Build the markdown preview when typing in textarea */
|
||||||
$(function() {
|
var convert = new Markdown.getSanitizingConverter();
|
||||||
|
Markdown.Extra.init(convert);
|
||||||
|
convert = convert.makeHtml;
|
||||||
|
|
||||||
var $textarea = $('.form-group.description textarea'),
|
var $textarea = $('.form-group.description textarea'),
|
||||||
$loader = $('<div class="md-preview-loading"><i class="pi-spin spin"></i></div>').insertAfter($textarea),
|
$loader = $('<div class="md-preview-loading"><i class="pi-spin spin"></i></div>').insertAfter($textarea),
|
||||||
@ -125,9 +125,7 @@ script(type="text/javascript").
|
|||||||
$preview.html(convert($textarea.val()));
|
$preview.html(convert($textarea.val()));
|
||||||
}
|
}
|
||||||
}).trigger('keyup');
|
}).trigger('keyup');
|
||||||
});
|
|
||||||
|
|
||||||
$(function() {
|
|
||||||
$('input, textarea').keypress(function () {
|
$('input, textarea').keypress(function () {
|
||||||
// Unused: save status of the page as 'edited'
|
// Unused: save status of the page as 'edited'
|
||||||
ProjectUtils.setProjectAttributes({isModified: true});
|
ProjectUtils.setProjectAttributes({isModified: true});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user