diff --git a/templates/snippets/repo_file_get.html b/templates/snippets/repo_file_get.html index c5001c7b73..b231f13488 100644 --- a/templates/snippets/repo_file_get.html +++ b/templates/snippets/repo_file_get.html @@ -118,6 +118,10 @@ if (!$.browser.mozilla && !$.browser.safari && !($.browser.msie && parseInt($.br } }); } + +if (!$.browser.mozilla && !$.browser.safari) { + $('#file-view').html('
在线查看:请使用firefox 或 chrome。
'); +} else { $.ajax({ url: '{{ SITE_ROOT }}crocodoc/upload/?raw_path={{ raw_path|urlencode }}', cache: false, @@ -135,10 +139,11 @@ if (!$.browser.mozilla && !$.browser.safari && !($.browser.msie && parseInt($.br $('#file-view').html('' + jsonVal[0]['error'] + '
'); } }); +} {% endif %} {% if filetype == 'PDF' %} -if (!$.browser.mozilla && !$.browser.safari && !($.browser.msie && parseInt($.browser.version) > 8)) { - $('#file-view').html('在线查看:请使用firefox, chrome 或 IE 9。
'); +if (!$.browser.mozilla && !$.browser.safari) { + $('#file-view').html('在线查看:请使用firefox 或 chrome。
'); } else { PDFJS.workerSrc = '{{MEDIA_URL}}js/pdf.js'; $('#file-view').html('