I have modified the "resources" extension to link to articles on a page but after selecting the article, the drawer remains open and one still has to click on the X at the top to close it.
I believe I am I need to add some code in the "adapt-contrib-resourcesView.js" file, probably after the window.open(href, target); call.
onResourceClicked: function(event) {
var data = $(event.currentTarget).data("href"),
href = "",
target = "_self";
if(data.indexOf(",") >= 0){
href = data.split(",")[0];
target = data.split(",")[1];
}else{
href = data;
}
window.open(href, target);
// window.open($(event.currentTarget).data("href"), "_self");
}
});
return ResourcesView;
})
Would anyone know what I need to do close have the resource (article) selected and then close the drawer?