remove obsolete filter noteTitle

This commit is contained in:
korelstar 2018-08-16 16:53:36 +02:00
parent 93ae9185d3
commit 07d49e46b8
2 changed files with 2 additions and 12 deletions

View File

@ -1,10 +0,0 @@
/**
* removes whitespaces and leading #
*/
app.filter('noteTitle', function () {
'use strict';
return function (value) {
value = value.split('\n')[0] || 'newNote';
return value.trim().replace(/^#+/g, '');
};
});

View File

@ -52,8 +52,8 @@ style('notes', [
<!-- notes list -->
<li ng-repeat="note in filteredNotes = (notes| and:search | orderBy:['-favorite','-modified'])"
ng-class="{ active: note.id == route.noteId,'has-error': note.error }">
<a href="#/notes/{{ note.id }}" title="{{ note.title | noteTitle }}">
{{ note.title | noteTitle }}
<a href="#/notes/{{ note.id }}" title="{{ note.title }}">
{{ note.title }}
<span ng-if="note.unsaved">*</span>
</a>
<div class="app-navigation-entry-utils" ng-class="{'hidden': note.error }">