From 7f87a3dac718f87175061e87ed688227f4c2abcf Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Wed, 5 Nov 2025 09:10:06 -0300 Subject: [PATCH] Fix filters on NC32. WTF? --- js/script.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/script.js b/js/script.js index af37ecd..826ba2a 100644 --- a/js/script.js +++ b/js/script.js @@ -697,7 +697,7 @@ View.prototype = { self._cleanNavigation(); $(this).addClass("active"); self._isotope.arrange({ - filter: function(elem) { + filter: function(index, elem) { return elem.querySelector('.shared') != null; } }); @@ -710,7 +710,7 @@ View.prototype = { self._cleanNavigation(); $(this).addClass("active"); self._isotope.arrange({ - filter: function(elem) { + filter: function(index, elem) { return elem.querySelector('.shareowner') != null; } }); @@ -1134,14 +1134,14 @@ View.prototype = { }, _filterNote: function (noteId) { this._isotope.arrange({ - filter: function(elem) { + filter: function(index, elem) { return noteId == elem.firstElementChild.getAttribute('data-id'); } }); }, _filterTag: function (tagId) { this._isotope.arrange({ - filter: function(elem) { + filter: function(index, elem) { var match = false; var tags = elem.querySelectorAll('.slim-tag'); tags.forEach (function(tagItem) { @@ -1154,7 +1154,7 @@ View.prototype = { }, _filterColor: function (color) { this._isotope.arrange({ - filter: function(elem) { + filter: function(index, elem) { return color == elem.firstElementChild.style["background-color"]; } });