File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ var FilesMindMap = {
2
2
_currentContext : null ,
3
3
_file : { } ,
4
4
_fileList : null ,
5
+ _lastTitle : '' ,
5
6
init : function ( ) {
6
7
this . registerFileActions ( ) ;
7
8
this . hackFileIcon ( ) ;
@@ -36,6 +37,8 @@ var FilesMindMap = {
36
37
// replace the controls with our own
37
38
$ ( '#app-content #controls' ) . removeClass ( 'hidden' ) ;
38
39
40
+ document . title = this . _lastTitle ;
41
+
39
42
if ( ! $ ( '#mimetype' ) . val ( ) ) {
40
43
this . _fileList . addAndFetchFileInfo ( this . _file . dir + '/' + this . _file . name , '' ) ;
41
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
+
90
96
// iframe.find('#close-button').click(function() {
91
97
// self.hide();
92
98
// });
You can’t perform that action at this time.
0 commit comments