refined structure of item-detail.js

This commit is contained in:
kunw 2016-04-18 23:13:36 +08:00
parent aef3d6cbef
commit 8e6c45871f

View File

@ -131,6 +131,7 @@ jQuery(function(){
}
}
data.Created = moment(new Date(data.Created)).format("YYYY-MM-DD HH:mm:ss");
$("#dlgModal").dialogModal({"title": i18n.getMessage("image_details"), "content": data});
}
}
@ -330,6 +331,7 @@ jQuery(function(){
getUserRoleCallback(userId);
});
$("#tblUser .glyphicon-trash").on("click", function(){
var roleId = $(this).attr("roleid");
var userId = $(this).attr("userid");
new AjaxUtil({
url: "/api/projects/" + $("#projectId").val() + "/members/" + userId,