Commit c306aa4c authored by Anatole Rakotoson's avatar Anatole Rakotoson
Browse files

fix aap community

parent ceaaf55c
......@@ -2518,7 +2518,11 @@ var directory = {
});
$('.acceptAsBtn').off().on('click',function () {
links.validate(contextData.type, contextData.id, $(this).data('id'), $(this).data('type'), $(this).data('connect-validation'));
if (typeof contextDataAap != "undefined" && typeof contextDataAap["id"] != "undefined" && typeof contextDataAap["type"] != "undefined"){
links.validate(contextDataAap["type"] , contextDataAap["id"] , $(this).data("id"), $(this).data("type"), $(this).data("connect-validation"));
}else {
links.validate(contextData.type, contextData.id, $(this).data("id"), $(this).data("type"), $(this).data("connect-validation"));
}
});
},
getTypeObj: function(col, type){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment