资源库空白处单击也要隐藏弹出框

This commit is contained in:
lizanle 2015-08-27 14:49:51 +08:00
parent a4e30d119d
commit b7daa643c8
1 changed files with 2 additions and 1 deletions

View File

@ -166,9 +166,10 @@ $(".resourcesList").mousedown(function(e) {
last_line = line;
}
});
$(".resourcesList").click(function(e) {
$(document.body).click(function(e) {
//在列表上的任何单击事件都要恢复原来的样子
//隐藏右键菜单
e.preventDefault()
$("#contextMenu").hide();
document.oncontextmenu = function() {return true;}
//如果当前行为空,那么要将当前行的拿到