From 74af6caa1e28b20ea954f4d0fb59ce849445e1b9 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Sun, 26 Jun 2016 22:05:33 -0300 Subject: [PATCH] Fix search with shared notes.. --- js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/script.js b/js/script.js index 06aacfa..f377021 100644 --- a/js/script.js +++ b/js/script.js @@ -623,10 +623,10 @@ function filter (query) { if (query) { query = query.toLowerCase(); $('.notes-grid').isotope({ filter: function() { - var title = $(this).find("#title-editable").html().toLowerCase(); + var title = $(this).find(".note-title").html().toLowerCase(); if (title.search(query) >= 0) return true; - var content = $(this).find("#content-editable").html().toLowerCase(); + var content = $(this).find(".note-content").html().toLowerCase(); if (content.search(query) >= 0) return true; return false;