add share filter

This commit is contained in:
Vinzenz
2016-05-31 17:46:40 +02:00
parent c84dbf4d97
commit 65f56144c0
3 changed files with 15 additions and 1 deletions

View File

@@ -385,6 +385,18 @@ View.prototype = {
$('#app-navigation .any-color').addClass('icon-checkmark');
});
$('#shared-with-you').click(function () {
$('.notes-grid').isotope({ filter: function() {
return $(this).children().hasClass('shared');
} });
});
$('#shared-by-you').click(function () {
$('.notes-grid').isotope({ filter: function() {
return $(this).children().hasClass('shareowner');
} });
});
// create a new note
var self = this;
$('#new-note').click(function () {