From d63a08e56716358ea4daa30d3050fa01df65a837 Mon Sep 17 00:00:00 2001 From: Jeremy Plsek Date: Fri, 20 Dec 2019 10:50:41 -0500 Subject: js: use npm instead of bower Bower is considered deprecated, so switch to npm. - Update all dependencies - Use npm's version of mxgraph - Use npm's version of jquery - Use npm's version of plotly - Fix mxgraph to use styles and images from the correct location - Removed random csrf token input in nav bar and use js to get csrf token - Remove all calendar and some resource files since they were not used Change-Id: I30d6bd91cded9547caa4c0a5247cd9f214fe9798 Signed-off-by: Jeremy Plsek --- src/static/js/dataTables-sort.js | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/static/js/dataTables-sort.js (limited to 'src/static/js/dataTables-sort.js') diff --git a/src/static/js/dataTables-sort.js b/src/static/js/dataTables-sort.js deleted file mode 100644 index 3072d2f..0000000 --- a/src/static/js/dataTables-sort.js +++ /dev/null @@ -1,36 +0,0 @@ -/***************************************************************************** -* Copyright (c) 2016 Max Breitenfeldt and others. -* -* All rights reserved. This program and the accompanying materials -* are made available under the terms of the Apache License, Version 2.0 -* which accompanies this distribution, and is available at -* http://www.apache.org/licenses/LICENSE-2.0 -*****************************************************************************/ - - -/** - * This is a sort function for dataTables to sort tables by the status column. - * The order should be: online < online/idle < offline - */ -jQuery.extend(jQuery.fn.dataTableExt.oSort, { - "status-pre": function (a) { - switch (a) { - case 'online': - return 1; - case 'online / idle': - return 2; - case 'offline': - return 3; - default: - return a; - } - }, - - "status-asc": function (a, b) { - return ((a < b) ? -1 : ((a > b) ? 1 : 0)); - }, - - "status-desc": function (a, b) { - return ((a < b) ? 1 : ((a > b) ? -1 : 0)); - } -}); \ No newline at end of file -- cgit 1.2.3-korg