diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-02-13 19:43:51 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-02-13 19:43:51 +0000 |
commit | f73f2356820468344757dbb9d7f3ec73ece7bf66 (patch) | |
tree | cc4d1f8559ab8d0e73f4efed80c1f5c866501a12 /web/_static/tablesorter/js/parsers/parser-globalize.min.js | |
parent | Reworking container version command in python. (diff) | |
download | compute-tools-next+web.tar.xz compute-tools-next+web.zip |
Updating.next+web
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'web/_static/tablesorter/js/parsers/parser-globalize.min.js')
-rw-r--r-- | web/_static/tablesorter/js/parsers/parser-globalize.min.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/_static/tablesorter/js/parsers/parser-globalize.min.js b/web/_static/tablesorter/js/parsers/parser-globalize.min.js new file mode 100644 index 0000000..cfe9c67 --- /dev/null +++ b/web/_static/tablesorter/js/parsers/parser-globalize.min.js @@ -0,0 +1,7 @@ +(function(factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof module === 'object' && typeof module.exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function(jQuery){ + +/*! Parser: jQuery Globalize - updated 11/2/2015 (v2.24.1) */ +!function(b){"use strict"; +/*! jQuery Globalize date parser (https://github.com/jquery/globalize#date-module) */b.tablesorter.addParser({id:"globalize-date",is:function(){return!1},format:function(e,l,a,o){var r,i,t=l.config,n=t.globalize&&(t.globalize[o]||t.globalize)||{};return Globalize&&(r="object"==typeof n.Globalize?n.Globalize:Globalize(n.lang||"en"),n.Globalize||(n.Globalize=r)),(i=r&&r.dateParser?r.dateParser(n)(e):e?new Date(e):e)instanceof Date&&isFinite(i)?i.getTime():e},type:"numeric"}), +/*! jQuery Globalize number parser (https://github.com/jquery/globalize#number-module) */ +b.tablesorter.addParser({id:"globalize-number",is:function(){return!1},format:function(e,l,a,o){var r,i,t=l.config,n=t.globalize&&(t.globalize[o]||t.globalize)||{};return Globalize&&(r="object"==typeof n.Globalize?n.Globalize:Globalize(n.lang||"en"),n.Globalize||(n.Globalize=r)),i=r&&r.numberParser?r.numberParser(n)(e):e?b.tablesorter.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),l):e,e&&"number"==typeof i?i:e},type:"numeric"})}(jQuery);return jQuery;})); |