Restore shares navigation

This commit is contained in:
Matias De lellis
2020-06-16 12:43:23 -03:00
parent f2b289f1f4
commit a4eeaf9128
3 changed files with 46 additions and 24 deletions

View File

@@ -563,30 +563,8 @@ View.prototype = {
$('#app-navigation ul').html(html);
// show all notes
$('#all-notes').click(function () {
$('.notes-grid').isotope({ filter: '*'});
/* Create a new note */
var oldColorTool = $('#app-navigation .circle-toolbar.icon-checkmark');
$.each(oldColorTool, function(i, oct) {
$(oct).removeClass('icon-checkmark');
});
$('#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 () {
var fakenote = {
@@ -611,6 +589,38 @@ View.prototype = {
});
});
/* Show all notes */
$('#all-notes').click(function () {
$('.notes-grid').isotope({ filter: '*'});
var oldColorTool = $('#app-navigation .circle-toolbar.icon-checkmark');
$.each(oldColorTool, function(i, oct) {
$(oct).removeClass('icon-checkmark');
});
$('#app-navigation .any-color').addClass('icon-checkmark');
});
/* Shares Navigation */
$('#shared-folder').click(function () {
$(this).toggleClass("open");
});
$('#shared-with-you').click(function (event) {
event.stopPropagation();
$('.notes-grid').isotope({ filter: function() {
return $(this).children().hasClass('shared');
} });
});
$('#shared-by-you').click(function (event) {
event.stopPropagation();
$('.notes-grid').isotope({ filter: function() {
return $(this).children().hasClass('shareowner');
} });
});
/* Colors Navigation */
$('#colors-folder').click(function () {