We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 860d9ed commit f4daa17Copy full SHA for f4daa17
js/mindmap.js
@@ -2,6 +2,7 @@ var FilesMindMap = {
2
_currentContext: null,
3
_file: {},
4
_fileList: null,
5
+ _lastTitle: '',
6
init: function() {
7
this.registerFileActions();
8
this.hackFileIcon();
@@ -36,6 +37,8 @@ var FilesMindMap = {
36
37
// replace the controls with our own
38
$('#app-content #controls').removeClass('hidden');
39
40
+ document.title = this._lastTitle;
41
+
42
if (!$('#mimetype').val()) {
43
this._fileList.addAndFetchFileInfo(this._file.dir + '/' + this._file.name, '');
44
} else {
@@ -87,6 +90,9 @@ var FilesMindMap = {
87
90
window.alert('save');
88
91
};
89
92
93
+ self._lastTitle = document.title;
94
+ document.title = self._file.name + ' - ' + OC.theme.title;
95
96
// iframe.find('#close-button').click(function() {
97
// self.hide();
98
// });
0 commit comments