fixed project filter

upd4.2
Bernat Romagosa 2018-02-01 14:56:40 +01:00
rodzic c1b68cdccf
commit 88efa7013b
1 zmienionych plików z 1 dodań i 9 usunięć

10
gui.js
Wyświetl plik

@ -5901,16 +5901,8 @@ ProjectDialogMorph.prototype.buildFilterField = function () {
myself.listField.elements =
myself.projectList.filter(function (aProject) {
var name,
notes;
if (aProject.projectname) { // cloud
name = aProject.projectname;
notes = aProject.notes;
} else { // local or examples
name = aProject.name;
var name = aProject.projectname || aProject.name,
notes = aProject.notes || '';
}
return name.toLowerCase().indexOf(text.toLowerCase()) > -1 ||
notes.toLowerCase().indexOf(text.toLowerCase()) > -1;