search fix
This commit is contained in:
@@ -118,10 +118,11 @@ angular.module('app.frontend')
|
||||
this.noteFilter = {text : ''};
|
||||
|
||||
this.filterNotes = function(note) {
|
||||
if(this.noteFilter.text.length == 0) {
|
||||
var filterText = this.noteFilter.text.toLowerCase();
|
||||
if(filterText.length == 0) {
|
||||
note.visible = true;
|
||||
} else {
|
||||
note.visible = note.title.toLowerCase().includes(this.noteFilter.text) || note.text.toLowerCase().includes(this.noteFilter.text);
|
||||
note.visible = note.safeTitle().toLowerCase().includes(filterText) || note.safeText().toLowerCase().includes(filterText);
|
||||
}
|
||||
return note.visible;
|
||||
}.bind(this)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
$main-text-color: black;
|
||||
$secondary-text-color: rgba($main-text-color, 0.8);
|
||||
$bg-color: #e3e3e3;
|
||||
$light-bg-color: #e9e9e9;
|
||||
$selection-color: $bg-color;
|
||||
$selected-text-color: black;
|
||||
$blue-color: #086dd6;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
margin-top: 20px;
|
||||
|
||||
.filter-bar {
|
||||
background-color: $bg-color;
|
||||
background-color: $light-bg-color;
|
||||
border-radius: 4px;
|
||||
height: 100%;
|
||||
color: #909090;
|
||||
@@ -39,20 +39,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
.notes-footer {
|
||||
border-top: 1px solid $bg-color;
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
margin-top: 1px solid $bg-color;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
|
||||
> .new-button {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.note {
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
|
||||
5
vendor/assets/javascripts/transpiled.js
vendored
5
vendor/assets/javascripts/transpiled.js
vendored
@@ -1204,10 +1204,11 @@ angular.module('app.frontend').controller('BaseCtrl', BaseCtrl);
|
||||
this.noteFilter = { text: '' };
|
||||
|
||||
this.filterNotes = function (note) {
|
||||
if (this.noteFilter.text.length == 0) {
|
||||
var filterText = this.noteFilter.text.toLowerCase();
|
||||
if (filterText.length == 0) {
|
||||
note.visible = true;
|
||||
} else {
|
||||
note.visible = note.title.toLowerCase().includes(this.noteFilter.text) || note.text.toLowerCase().includes(this.noteFilter.text);
|
||||
note.visible = note.safeTitle().toLowerCase().includes(filterText) || note.safeText().toLowerCase().includes(filterText);
|
||||
}
|
||||
return note.visible;
|
||||
}.bind(this);
|
||||
|
||||
2
vendor/assets/javascripts/transpiled.js.map
vendored
2
vendor/assets/javascripts/transpiled.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user