diff options
Diffstat (limited to 'js/editor.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(); + } } }, |