summaryrefslogtreecommitdiff
path: root/html/assets/js/dataTables/datatables.date-uk.js
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-17 12:12:22 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-17 12:12:22 +0300
commit68fc9e55e538e03f94509731ab41a0c8cf96710f (patch)
tree3edb1e81864ac3eb35ba0fe8087ed24da1b812bf /html/assets/js/dataTables/datatables.date-uk.js
parent84b2da85a1b452922dadb6a609533b9945afe51d (diff)
downloadclassroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.gz
classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.bz2
classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.zip
setup a real server environment (apache DocumentRoot=/var/www/public)
Diffstat (limited to 'html/assets/js/dataTables/datatables.date-uk.js')
-rw-r--r--html/assets/js/dataTables/datatables.date-uk.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/html/assets/js/dataTables/datatables.date-uk.js b/html/assets/js/dataTables/datatables.date-uk.js
deleted file mode 100644
index 527ea6c..0000000
--- a/html/assets/js/dataTables/datatables.date-uk.js
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * DataTables internal date sorting replies on `Date.parse()` which is part of
- * the Javascript language, but you may wish to sort on dates which is doesn't
- * recognise. The following is a plug-in for sorting dates in the format
- * `dd/mm/yy`.
- *
- * An automatic type detection plug-in is available for this sorting plug-in.
- *
- * Please note that this plug-in is **deprecated*. The
- * [datetime](//datatables.net/blog/2014-12-18) plug-in provides enhanced
- * functionality and flexibility.
- *
- * @name Date (dd/mm/YY)
- * @summary Sort dates in the format `dd/mm/YY`
- * @author Andy McMaster
- * @deprecated
- *
- * @example
- * $('#example').dataTable( {
- * columnDefs: [
- * { type: 'date-uk', targets: 0 }
- * ]
- * } );
- */
-
- jQuery.extend( jQuery.fn.dataTableExt.oSort, {
- "date-uk-pre": function ( a ) {
- if (a == null || a == "") {
- return 0;
- }
- var ukDatea = a.split('/');
- return (ukDatea[2] + ukDatea[1] + ukDatea[0]) * 1;
- },
-
- "date-uk-asc": function ( a, b ) {
- return ((a < b) ? -1 : ((a > b) ? 1 : 0));
- },
-
- "date-uk-desc": function ( a, b ) {
- return ((a < b) ? 1 : ((a > b) ? -1 : 0));
- }
-} );