diff --git a/ckanext/unaids/assets/validation-badge.js b/ckanext/unaids/assets/validation-badge.js index fe903b2b..685441e8 100644 --- a/ckanext/unaids/assets/validation-badge.js +++ b/ckanext/unaids/assets/validation-badge.js @@ -16,8 +16,8 @@ this.ckan.module('validation-badge', function (jQuery) { $.ajax({ url: "/api/3/action/resource_validation_show?resource_id=" + this.options.resource, type: "GET", - success: function(data){module._success(data);}, - error: function(XMLHttpRequest, textStatus, errorThrown){module._error(XMLHttpRequest, textStatus, errorThrown);}, + success: function(data){console.log(data); module._success(data);}, + error: function(XMLHttpRequest, textStatus, errorThrown){console.log(data); module._error(XMLHttpRequest, textStatus, errorThrown);}, dataType: "json", complete: setTimeout(function(){module._complete();}, 5000), timeout: 2000