diff options
author | korelstar <korelstar@users.noreply.github.com> | 2018-08-16 10:22:25 +0300 |
---|---|---|
committer | korelstar <korelstar@users.noreply.github.com> | 2018-08-18 10:02:21 +0300 |
commit | 93ae9185d3b1b926fe9b79f04345b7e9c16b2a4c (patch) | |
tree | 0cbea98004a03bffcc411dc3c9699cc05208122e /templates | |
parent | 0e3bbf632ed02d92fbb4ec6adf4220323cd59161 (diff) |
fix: DOM position of "new note" button
Diffstat (limited to 'templates')
-rw-r--r-- | templates/main.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/templates/main.php b/templates/main.php index 0ce87ac4..1170d6a9 100644 --- a/templates/main.php +++ b/templates/main.php @@ -33,6 +33,14 @@ style('notes', [ </script> <div id="app-navigation" ng-controller="NotesController" ng-class="{'loading': !notesLoaded}"> + <!-- new note button --> + <div id="note-add"> + <button class="icon-add app-content-list-button ng-binding" id="new-note-button" type="button" name="button" ng-click="create()" + oc-click-focus="{ selector: '#app-content textarea' }"> + <?php p($l->t('New note')); ?> + </button> + </div> + <ul> <?php if(!$_['useSearchAPI']) { ?> <li class="note-search"> @@ -41,13 +49,6 @@ style('notes', [ </span> </li> <?php } ?> - <!-- new note button --> - <div id="note-add"> - <button class="icon-add app-content-list-button ng-binding" id="new-note-button" type="button" name="button" ng-click="create()" - oc-click-focus="{ selector: '#app-content textarea' }"> - <?php p($l->t('New note')); ?> - </button> - </div> <!-- 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 }"> |