mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Fix search with shared notes..
This commit is contained in:
@@ -623,10 +623,10 @@ function filter (query) {
|
|||||||
if (query) {
|
if (query) {
|
||||||
query = query.toLowerCase();
|
query = query.toLowerCase();
|
||||||
$('.notes-grid').isotope({ filter: function() {
|
$('.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)
|
if (title.search(query) >= 0)
|
||||||
return true;
|
return true;
|
||||||
var content = $(this).find("#content-editable").html().toLowerCase();
|
var content = $(this).find(".note-content").html().toLowerCase();
|
||||||
if (content.search(query) >= 0)
|
if (content.search(query) >= 0)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user