update page title

This commit is contained in:
Tom Needham 2012-01-09 22:38:19 +00:00
parent 6d37c7d351
commit 66020c5d44
1 changed files with 4 additions and 0 deletions

View File

@ -185,6 +185,8 @@ function showFileEditor(dir,filename){
// Initialise the editor
showControls(filename,result.data.write);
$('table').fadeOut('slow', function() {
// Update document title
document.title = filename;
$('#editor').text(result.data.filecontents);
$('#editor').attr('data-dir', dir);
$('#editor').attr('data-filename', filename);
@ -220,6 +222,8 @@ function hideFileEditor(){
// Fade out editor
$('#editor').fadeOut('slow', function(){
$(this).remove();
// Reset document title
document.title = "ownCloud";
var editorhtml = '<div id="editor"></div>';
$('table').after(editorhtml);
$('.actions,#file_access_panel').fadeIn('slow');