Merge pull request #1712 from AndreasK79/search_menu_fix
这个提交包含在:
当前提交
30d339b04d
共有 1 个文件被更改,包括 31 次插入 和 0 次删除
|
|
@ -860,6 +860,37 @@ function getLookupResult() {
|
||||||
$(function () {
|
$(function () {
|
||||||
$('[data-toggle="tooltip"]').tooltip()
|
$('[data-toggle="tooltip"]').tooltip()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
// hold onto the drop down menu
|
||||||
|
var dropdownMenu;
|
||||||
|
|
||||||
|
// and when you show it, move it to the body
|
||||||
|
$(window).on('show.bs.dropdown', function (e) {
|
||||||
|
|
||||||
|
// grab the menu
|
||||||
|
dropdownMenu = $(e.target).find('.dropdown-menu');
|
||||||
|
|
||||||
|
// detach it and append it to the body
|
||||||
|
$('body').append(dropdownMenu.detach());
|
||||||
|
|
||||||
|
// grab the new offset position
|
||||||
|
var eOffset = $(e.target).offset();
|
||||||
|
|
||||||
|
// make sure to place it where it would normally go (this could be improved)
|
||||||
|
dropdownMenu.css({
|
||||||
|
'display': 'block',
|
||||||
|
'top': eOffset.top + $(e.target).outerHeight(),
|
||||||
|
'left': eOffset.left
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// and when you hide it, reattach the drop down, and hide it normally
|
||||||
|
$(window).on('hide.bs.dropdown', function (e) {
|
||||||
|
$(e.target).append(dropdownMenu.detach());
|
||||||
|
dropdownMenu.hide();
|
||||||
|
});
|
||||||
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
i=0;
|
i=0;
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用