From 458dc60ad5844118c0271a7540f8b7b17ffc4259 Mon Sep 17 00:00:00 2001 From: Chas Nelson Date: Fri, 4 Aug 2023 12:19:44 +0100 Subject: [PATCH] wip delete me --- ckanext/unaids/assets/validation-badge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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