diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-01-09 22:38:19 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-01-09 22:38:19 +0000 |
commit | 66020c5d44d456055215734c50bcc0b8d836d3f1 (patch) | |
tree | be5f95a642ed5c86cc00f9ff4a85561b598c28ad /apps/files_texteditor | |
parent | 6d37c7d351200bef15c71bd44e2182d0f5b5ccec (diff) | |
download | nextcloud-server-66020c5d44d456055215734c50bcc0b8d836d3f1.tar.gz nextcloud-server-66020c5d44d456055215734c50bcc0b8d836d3f1.zip |
update page title
Diffstat (limited to 'apps/files_texteditor')
-rw-r--r-- | apps/files_texteditor/js/editor.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index cf6d8217c67..ff5615518af 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -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'); |