diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-09-01 16:27:56 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-09-01 16:27:56 +0300 |
commit | 85c993c89b3a4f6957866a8aaaa1cefede73552e (patch) | |
tree | c43acbb0d8a412a738b5eb8e720cf488dc615910 /js | |
parent | 3192207efe4448c1c55aa25ebe30ccd9eebbe8d5 (diff) |
fix history in ie8
Diffstat (limited to 'js')
-rw-r--r-- | js/editor.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/js/editor.js b/js/editor.js index 7ea57a7..97fbc02 100644 --- a/js/editor.js +++ b/js/editor.js @@ -176,7 +176,9 @@ var Files_Texteditor = { OCA.Files_Texteditor.$container, OCA.Files_Texteditor.file ); - history.pushState({file:filename, dir:context.dir}, 'Editor', '#editor'); + if(!$('html').hasClass('ie8')) { + history.pushState({file:filename, dir:context.dir}, 'Editor', '#editor'); + } }, /** @@ -344,8 +346,10 @@ var Files_Texteditor = { bindControlBar: function() { $('#editor_close').on('click', this._onCloseTrigger); $(window).resize(OCA.Files_Texteditor.setFilenameMaxLength); - window.onpopstate = function(e) { - OCA.Files_Texteditor._onCloseTrigger(); + if(!$('html').hasClass('ie8')) { + window.onpopstate = function (e) { + OCA.Files_Texteditor._onCloseTrigger(); + } } }, |