1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

add 'top tip' for IE

This commit is contained in:
llj
2015-06-05 17:09:53 +08:00
parent 4a543319a7
commit ee816216ea
3 changed files with 19 additions and 0 deletions

View File

@@ -3592,3 +3592,16 @@ textarea:-moz-placeholder {/* for FF */
#download-link-operations dt { #download-link-operations dt {
margin: 0; margin: 0;
} }
#top-browser-tip {
padding:7px 4px;
background:#fff1a8;
text-align:center;
border-bottom:1px solid #ccc;
margin:0;
}
#top-browser-tip .close {
display:inline-block;
margin-left:10px;
cursor:pointer;
color:#15c;
}

View File

@@ -25,6 +25,9 @@
<body> <body>
<div id="wrapper" class="{{ LANGUAGE_CODE }}"> <div id="wrapper" class="{{ LANGUAGE_CODE }}">
<!--[if lt IE 10]>
<p id="top-browser-tip">{% trans "We no longer support this version of IE. Please upgrade it to version 10 or above." %} <span class="close">{% trans "Close" %}</span></p>
<![endif]-->
{% block info_bar_message %} {% block info_bar_message %}
{% if request.user.is_authenticated and request.cur_note %} {% if request.user.is_authenticated and request.cur_note %}
<div id="info-bar"> <div id="info-bar">

View File

@@ -50,6 +50,9 @@ define([
} }
$('#info-bar .close').click(Common.closeTopNoticeBar); $('#info-bar .close').click(Common.closeTopNoticeBar);
$('#top-browser-tip .close').click(function () {
$('#top-browser-tip').addClass('hide');
});
}, },
switchCurrentView: function(newView) { switchCurrentView: function(newView) {