mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 15:47:17 +01:00
Not collapse navigation folders when click to filter
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user