Not collapse navigation folders when click to filter

This commit is contained in:
Matias De lellis
2017-01-25 21:31:17 -03:00
parent 5c65645960
commit 95429c2d64

View File

@@ -589,7 +589,8 @@ View.prototype = {
}); });
// show a note // show a note
$('#app-navigation .note > a').click(function () { $('#app-navigation .note > a').click(function (event) {
event.stopPropagation();
var id = parseInt($(this).parent().data('id'), 10); var id = parseInt($(this).parent().data('id'), 10);
$('.notes-grid').isotope({ filter: function() { $('.notes-grid').isotope({ filter: function() {
var itemId = parseInt($(this).children().data('id'), 10); var itemId = parseInt($(this).children().data('id'), 10);
@@ -599,6 +600,7 @@ View.prototype = {
// Handle colors. // Handle colors.
$('#app-navigation .circle-toolbar').click(function (event) { $('#app-navigation .circle-toolbar').click(function (event) {
event.stopPropagation();
var oldColorTool = $('#app-navigation .circle-toolbar.icon-checkmark'); var oldColorTool = $('#app-navigation .circle-toolbar.icon-checkmark');
$.each(oldColorTool, function(i, oct) { $.each(oldColorTool, function(i, oct) {
$(oct).removeClass('icon-checkmark'); $(oct).removeClass('icon-checkmark');