You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Plugins/sorting/persian-number.min.js

2 lines
832 B
JavaScript

/*! © SpryMedia Ltd, Khorshid - datatables.net/license */
!function(t){var r,o;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(r=require("jquery"),o=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||r(e),o(e,n),t(n,0,e.document)}:(o(window,r),module.exports=t(r,window,window.document))):t(jQuery,window,document)}(function(e,n,t,r){"use strict";e=e.fn.dataTable;return e.ext.type.order["kh-persian-numbers-pre"]=function(e,n){return parseFloat(function(e){for(var n=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],t=["0","1","2","3","4","5","6","7","8","9"],r=e,o=0;o<10;o++)var u=new RegExp(n[o],"g"),r=r.replace(u,t[o]);return r}(e))},e});