mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-18 15:08:22 +00:00
[repo]improved more-op popup
This commit is contained in:
parent
0b37e40cbc
commit
adfc1114ea
@ -13,10 +13,7 @@
|
|||||||
|
|
||||||
{% block main_panel %}
|
{% block main_panel %}
|
||||||
{% if view_history %}
|
{% if view_history %}
|
||||||
<h2 class="subject">
|
<h2>{{repo.props.name}} 历史浏览<span class="latest-commit-time-author">({{ current_commit.props.ctime|tsstr_sec }})</span></h2>
|
||||||
{{repo.props.name}} 历史浏览
|
|
||||||
<span class="latest-commit-time-author">({{ current_commit.props.ctime|tsstr_sec }})</span>
|
|
||||||
</h2>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2>{{repo.props.name}}</h2>
|
<h2>{{repo.props.name}}</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -237,12 +234,13 @@ $("table tr:gt(0)").hover(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$('#main-panel').removeClass('ovhd');
|
||||||
var Hide = '';
|
var Hide = '';
|
||||||
$('.more-op').hover(
|
$('.more-op').hover(
|
||||||
function() {
|
function() {
|
||||||
$(this).parent().css('position','relative');
|
$(this).parent().css('position','relative');
|
||||||
$('.op-list').attr('class', 'op-list hide');
|
$('.op-list').attr('class', 'op-list hide');
|
||||||
if ($(this).offset().top + $(this).next().height() <= $('#main-panel').offset().top + $('#main-panel').height()) {
|
if ($(this).offset().top + $(this).next().height() <= $('#main').offset().top + $('#main').height()) {
|
||||||
$(this).next().css('top', 6);
|
$(this).next().css('top', 6);
|
||||||
} else {
|
} else {
|
||||||
$(this).next().css('bottom', 2);
|
$(this).next().css('bottom', 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user