Merge branch 'pluginmanagersearch' of https://github.com/markwal/OctoPrint into pr/markwal/pluginmanagersearch
Conflicts: src/octoprint/translations/de/LC_MESSAGES/messages.mo src/octoprint/translations/de/LC_MESSAGES/messages.po translations/de/LC_MESSAGES/messages.mo translations/de/LC_MESSAGES/messages.po translations/messages.pot
This commit is contained in:
commit
02b68e2912
1 changed files with 3 additions and 5 deletions
|
|
@ -147,19 +147,17 @@ $(function() {
|
|||
}
|
||||
});
|
||||
|
||||
self.performRepositorySearch = function(e) {
|
||||
if (e !== undefined) {
|
||||
e.preventDefault();
|
||||
}
|
||||
|
||||
self.performRepositorySearch = function(formElement) {
|
||||
var query = self.repositorySearchQuery();
|
||||
if (query !== undefined && query.trim() != "") {
|
||||
query = query.toLocaleLowerCase()
|
||||
self.repositoryplugins.changeSearchFunction(function(entry) {
|
||||
return entry && (entry["title"].toLocaleLowerCase().indexOf(query) > -1 || entry["description"].toLocaleLowerCase().indexOf(query) > -1);
|
||||
});
|
||||
} else {
|
||||
self.repositoryplugins.resetSearch();
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
self.fromResponse = function(data) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue