remove obsolete filter noteTitle
This commit is contained in:
parent
93ae9185d3
commit
07d49e46b8
|
@ -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, '');
|
||||
};
|
||||
});
|
|
@ -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 }">
|
||||
|
|
Loading…
Reference in New Issue