From d2b32a16eb72e67e48adc5780814d29e8fb123bb Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 12 Jul 2023 14:32:05 +0100 Subject: [PATCH] Fix: Enum plug-in error --- sorting/enum.js | 2 +- sorting/enum.min.js | 2 +- sorting/enum.min.mjs | 2 +- sorting/enum.mjs | 2 +- sorting/src/enum.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sorting/enum.js b/sorting/enum.js index 9f3ad15..9c7c538 100644 --- a/sorting/enum.js +++ b/sorting/enum.js @@ -79,7 +79,7 @@ DataTable['enum'] = function (arr) { return lookup[d] !== undefined ? name : null; }); // Add sorting method - types.type.order[name + '-pre'] = function (d) { + types.order[name + '-pre'] = function (d) { return lookup[d]; }; }; diff --git a/sorting/enum.min.js b/sorting/enum.min.js index 562bf24..a57ac19 100644 --- a/sorting/enum.min.js +++ b/sorting/enum.min.js @@ -1,2 +1,2 @@ /*! © SpryMedia Ltd - datatables.net/license */ -!function(t){var o,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),u=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),u(e,n),t(n,e,e.document)}:(u(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,r,n,d){"use strict";var e=e.fn.dataTable,i=0,f=e.ext.type;return e.enum=function(e){for(var n="enum-"+i++,t=r.Map?new Map:{},o=0,u=e.length;o