");
- $.post(CKAN.SITE_URL + "/api/util/markdown", { q: raw_markdown },
- function(data) { preview.html(data); }
- );
+ $.ajax({
+ url: CKAN.SITE_URL + "/api/util/markdown",
+ type: 'POST',
+ headers: hdxUtil.net.getCsrfTokenAsObject(),
+ data: {q: raw_markdown},
+ success: function (data) {
+ preview.html(data);
+ }
+ });
preview.width(textarea.width());
preview.height(textarea.height());
textarea.hide();
@@ -1438,6 +1445,7 @@ CKAN.Utils = function($, my) {
dataType: 'json',
processData: false,
type: 'POST',
+ headers: hdxUtil.net.getCsrfTokenAsObject(),
success: function(data) {
button.setAttribute('data-state', nextState);
button.innerHTML = nextString;
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/admin/all_requests_data.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/admin/all_requests_data.html
index abf3ddc2cc..460f65aa0b 100644
--- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/admin/all_requests_data.html
+++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/admin/all_requests_data.html
@@ -5,7 +5,7 @@
{{ super() }}
{% asset 'requestdata/main-styles' %}
{% asset 'hdx_theme/requestdata-styles' %}
- {% asset 'hdx_theme/search-styles' %}
+ {% asset 'hdx_theme/dataset-search-styles' %}
{% asset 'vendor/select2-css' %}
{% endblock %}
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/ajax_snippets/reject_request_form.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/ajax_snippets/reject_request_form.html
index dd34ce88e3..79ba5591d1 100644
--- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/ajax_snippets/reject_request_form.html
+++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/ajax_snippets/reject_request_form.html
@@ -34,6 +34,7 @@
Decline the request
\ No newline at end of file
+
diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/organization/bulk_process.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/organization/bulk_process.html
index 936ed7d00d..c90bd84fb5 100644
--- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/organization/bulk_process.html
+++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/organization/bulk_process.html
@@ -26,6 +26,7 @@
{% block form %}
{% if c.page.item_count %}