if (interestingReferences) {
interestingReferences = $.parseJSON(interestingReferences);
}
- if (interestingReferences) {
+ if (Object.keys(interestingReferences).length) {
$("#settings-references").css('display', 'block');
}
}
- $("#reference-close").on("click", function() {
+ $("#reference-close").on("click", function(event) {
+ event.preventDefault();
$("#reference-box").hide();
});