Fix filters on NC32. WTF?

This commit is contained in:
Matias De lellis
2025-11-05 09:10:06 -03:00
parent 9a899ecb9b
commit 7f87a3dac7

View File

@@ -697,7 +697,7 @@ View.prototype = {
self._cleanNavigation(); self._cleanNavigation();
$(this).addClass("active"); $(this).addClass("active");
self._isotope.arrange({ self._isotope.arrange({
filter: function(elem) { filter: function(index, elem) {
return elem.querySelector('.shared') != null; return elem.querySelector('.shared') != null;
} }
}); });
@@ -710,7 +710,7 @@ View.prototype = {
self._cleanNavigation(); self._cleanNavigation();
$(this).addClass("active"); $(this).addClass("active");
self._isotope.arrange({ self._isotope.arrange({
filter: function(elem) { filter: function(index, elem) {
return elem.querySelector('.shareowner') != null; return elem.querySelector('.shareowner') != null;
} }
}); });
@@ -1134,14 +1134,14 @@ View.prototype = {
}, },
_filterNote: function (noteId) { _filterNote: function (noteId) {
this._isotope.arrange({ this._isotope.arrange({
filter: function(elem) { filter: function(index, elem) {
return noteId == elem.firstElementChild.getAttribute('data-id'); return noteId == elem.firstElementChild.getAttribute('data-id');
} }
}); });
}, },
_filterTag: function (tagId) { _filterTag: function (tagId) {
this._isotope.arrange({ this._isotope.arrange({
filter: function(elem) { filter: function(index, elem) {
var match = false; var match = false;
var tags = elem.querySelectorAll('.slim-tag'); var tags = elem.querySelectorAll('.slim-tag');
tags.forEach (function(tagItem) { tags.forEach (function(tagItem) {
@@ -1154,7 +1154,7 @@ View.prototype = {
}, },
_filterColor: function (color) { _filterColor: function (color) {
this._isotope.arrange({ this._isotope.arrange({
filter: function(elem) { filter: function(index, elem) {
return color == elem.firstElementChild.style["background-color"]; return color == elem.firstElementChild.style["background-color"];
} }
}); });