update page title
This commit is contained in:
parent
6d37c7d351
commit
66020c5d44
|
@ -185,6 +185,8 @@ function showFileEditor(dir,filename){
|
||||||
// Initialise the editor
|
// Initialise the editor
|
||||||
showControls(filename,result.data.write);
|
showControls(filename,result.data.write);
|
||||||
$('table').fadeOut('slow', function() {
|
$('table').fadeOut('slow', function() {
|
||||||
|
// Update document title
|
||||||
|
document.title = filename;
|
||||||
$('#editor').text(result.data.filecontents);
|
$('#editor').text(result.data.filecontents);
|
||||||
$('#editor').attr('data-dir', dir);
|
$('#editor').attr('data-dir', dir);
|
||||||
$('#editor').attr('data-filename', filename);
|
$('#editor').attr('data-filename', filename);
|
||||||
|
@ -220,6 +222,8 @@ function hideFileEditor(){
|
||||||
// Fade out editor
|
// Fade out editor
|
||||||
$('#editor').fadeOut('slow', function(){
|
$('#editor').fadeOut('slow', function(){
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
|
// Reset document title
|
||||||
|
document.title = "ownCloud";
|
||||||
var editorhtml = '<div id="editor"></div>';
|
var editorhtml = '<div id="editor"></div>';
|
||||||
$('table').after(editorhtml);
|
$('table').after(editorhtml);
|
||||||
$('.actions,#file_access_panel').fadeIn('slow');
|
$('.actions,#file_access_panel').fadeIn('slow');
|
||||||
|
|
Loading…
Reference in New Issue