Migrated all resources into the resources' directory.

This commit is contained in:
didier amyot committed 2023-02-11 06:57:25 -05:00
1 parent 8449cf94ee
commit eca4820fd2
16 files changed
+3 -7

No files matched your search

@@ -0,0 +1,14 @@
(function() {
htmx.defineExtension('embedded-json-enc', {
onEvent: function (name, evt) {
if (name === "htmx:configRequest") {
evt.detail.headers['Content-Type'] = "application/json";
}
},
encodeParameters : function(xhr, parameters, elt) {
xhr.overrideMimeType('text/json');
return (JSON.stringify(parameters));
}
});
})()