From afff4eea77a64f53a9bd1138b2724a431a0ea457 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sun, 18 Nov 2018 22:36:19 +0100 Subject: differences: remove leftover JavaScript from 373a426cb In 373a426cb we removed the i686/x64_64 differences report and forgot to remove the used JavaScript functions. --- sitestatic/archweb.js | 55 --------------------------------------------------- 1 file changed, 55 deletions(-) (limited to 'sitestatic') diff --git a/sitestatic/archweb.js b/sitestatic/archweb.js index 4798b71b..ffdd30e6 100644 --- a/sitestatic/archweb.js +++ b/sitestatic/archweb.js @@ -264,61 +264,6 @@ function collapseRelatedTo(elements) { }); } -/* packages/differences.html */ -function filter_packages() { - /* start with all rows, and then remove ones we shouldn't show */ - var rows = $('#tbody_differences').children(), - all_rows = rows; - if (!$('#id_multilib').is(':checked')) { - rows = rows.not('.multilib').not('.multilib-testing'); - } - var arch = $('#id_archonly').val(); - if (arch !== 'all') { - rows = rows.filter('.' + arch); - } - if (!$('#id_minor').is(':checked')) { - /* this check is done last because it is the most expensive */ - var pat = /(.*)-(.+)/; - rows = rows.filter(function(index) { - var cells = $(this).children('td'); - - /* all this just to get the split version out of the table cell */ - var ver_a = cells.eq(2).text().match(pat); - if (!ver_a) { - return true; - } - - var ver_b = cells.eq(3).text().match(pat); - if (!ver_b) { - return true; - } - - /* first check pkgver */ - if (ver_a[1] !== ver_b[1]) { - return true; - } - /* pkgver matched, so see if rounded pkgrel matches */ - if (Math.floor(parseFloat(ver_a[2])) === - Math.floor(parseFloat(ver_b[2]))) { - return false; - } - /* pkgrel didn't match, so keep the row */ - return true; - }); - } - /* hide all rows, then show the set we care about */ - all_rows.hide(); - rows.show(); - /* make sure we update the odd/even styling from sorting */ - $('.results').trigger('applyWidgets', [false]); -} -function filter_packages_reset() { - $('#id_archonly').val('both'); - $('#id_multilib').prop('checked', false); - $('#id_minor').prop('checked', false); - filter_packages(); -} - /* todolists/view.html */ function todolist_flag() { // TODO: fix usage of this -- cgit v1.2.3-55-g3dc8