add infomation support

This commit is contained in:
2020-04-13 12:35:41 +08:00
parent 144e2c585d
commit 4f941f606b
4 changed files with 66 additions and 2 deletions

View File

@ -29,3 +29,27 @@ function highlightLink(target) {
//cancel event seperate
event.stopPropagation();
}
function queryInfo(obj) {
$.post(window.location,
{
operation: "info",
target: obj
},
function(data, status) {
//set id
$("#propertyWindow-id").text(obj);
//set data
$("#propertyWindow-container").empty()
for (var key in data) {
$("#propertyWindow-container").append("<p><b>" + key + ":</b><br />" + data[key] +"</p>")
}
$("#propertyWindow-main").show();
});
}
function closePropertyWindow() {
$("#propertyWindow-main").hide();
}