Skip to content

Commit

Permalink
Remove JS that created old style filtering urls
Browse files Browse the repository at this point in the history
  • Loading branch information
AceFire6 committed Aug 27, 2018
1 parent 4498a7b commit 23e5c50
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions ordering/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,6 @@
window.open(url, '_blank');
};

var addFilters = function() {
var toFilterList = [];

var selectedOptions = $('#show-filter-select').select2('data');
$.each(selectedOptions, function() {
toFilterList.push(this.id);
});

var url = '';

if (toFilterList.length > 0) {
url = '/hide/' + toFilterList.join('+');
}

url += '/';

if (document.baseURI.match('/newest_first/$')) {
url += 'newest_first/';
}
window.location = url;
};

var disableColours = function() {
$('.episode, thead').addClass('no-color');
$('#episode-list').addClass('table-striped table-hover');
Expand All @@ -44,7 +22,6 @@

var registerListeners = function() {
$('.episode').click(openWiki);
$('#filter-button').click(addFilters);

$('#no-color').click(function() {
if (Cookies.get('colour') === '1') {
Expand Down

0 comments on commit 23e5c50

Please sign in to comment.