mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Remove unused code that fails in nc28 since they removed the api
This commit is contained in:
30
js/script.js
30
js/script.js
@@ -1236,36 +1236,6 @@ var setFilterUrl = function (filterParam, filter) {
|
||||
document.title = title;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Filter notes.
|
||||
*/
|
||||
function search (query) {
|
||||
if (query) {
|
||||
query = query.toLowerCase();
|
||||
$('.notes-grid').isotope({
|
||||
filter: function() {
|
||||
var title = $(this).find(".note-title").html().toLowerCase();
|
||||
if (title.search(query) >= 0)
|
||||
return true;
|
||||
|
||||
var content = $(this).find(".note-content").html().toLowerCase();
|
||||
if (content.search(query) >= 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$('.notes-grid').isotope({ filter: '*'});
|
||||
}
|
||||
};
|
||||
|
||||
new OCA.Search(search, function() {
|
||||
search('');
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Add Helpers to handlebars
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user