mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
[file-op]close other op-list popup when open one
This commit is contained in:
@@ -441,6 +441,7 @@ ul.with-bg li {
|
|||||||
font-weight:normal;
|
font-weight:normal;
|
||||||
}
|
}
|
||||||
#simplemodal-container h3 {
|
#simplemodal-container h3 {
|
||||||
|
word-wrap:break-word;
|
||||||
margin:0 0 4px;
|
margin:0 0 4px;
|
||||||
}
|
}
|
||||||
.simplemodal-close {
|
.simplemodal-close {
|
||||||
|
@@ -271,18 +271,20 @@ $("table tr:gt(0)").hover(
|
|||||||
$('#main-panel').removeClass('ovhd');
|
$('#main-panel').removeClass('ovhd');
|
||||||
var clicked_more_op;
|
var clicked_more_op;
|
||||||
$('.more-op').click(function(e) {
|
$('.more-op').click(function(e) {
|
||||||
clicked_more_op = $(this);
|
var its_op_list = $(this).next();
|
||||||
if ($(this).attr('data')) { // no popup
|
if ($(this).attr('data')) { // no popup
|
||||||
|
clicked_more_op = $(this);
|
||||||
$(this).parent().css('position','relative');
|
$(this).parent().css('position','relative');
|
||||||
if ($(this).offset().top + $(this).next().height() <= $('#main').offset().top + $('#main').height()) {
|
if ($(this).offset().top + its_op_list.height() <= $('#main').offset().top + $('#main').height()) {
|
||||||
$(this).next().css('top', 6);
|
its_op_list.css('top', 6);
|
||||||
} else {
|
} else {
|
||||||
$(this).next().css('bottom', 2);
|
its_op_list.css('bottom', 2);
|
||||||
}
|
}
|
||||||
$(this).next().removeClass('hide');
|
$('.op-list').addClass('hide');
|
||||||
|
its_op_list.removeClass('hide');
|
||||||
$(this).attr('data','');
|
$(this).attr('data','');
|
||||||
} else {
|
} else {
|
||||||
$(this).next().addClass('hide');
|
its_op_list.addClass('hide');
|
||||||
$(this).attr('data','no-popup');
|
$(this).attr('data','no-popup');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user