mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
D'Oh! Again. Show all when remove a note. Put add note as first option of navigation.
This commit is contained in:
@@ -308,6 +308,7 @@ View.prototype = {
|
|||||||
if (self._notes.length() > 0) {
|
if (self._notes.length() > 0) {
|
||||||
$(".notes-grid").isotope('remove', note.parent())
|
$(".notes-grid").isotope('remove', note.parent())
|
||||||
.isotope('layout');
|
.isotope('layout');
|
||||||
|
self.showAll();
|
||||||
self.renderNavigation();
|
self.renderNavigation();
|
||||||
} else {
|
} else {
|
||||||
self.render();
|
self.render();
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<div style="display:none" id="new-note-string"><?php p($l->t('New note')); ?></div>
|
<div style="display:none" id="new-note-string"><?php p($l->t('New note')); ?></div>
|
||||||
|
|
||||||
<script id="navigation-tpl" type="text/x-handlebars-template">
|
<script id="navigation-tpl" type="text/x-handlebars-template">
|
||||||
<li id="all-notes"><a href="#" class="icon-home svg"><?php p($l->t('All notes')); ?></a></li>
|
|
||||||
<li id="new-note"><a href="#" class="icon-add svg"><?php p($l->t('Add note')); ?></a></li>
|
<li id="new-note"><a href="#" class="icon-add svg"><?php p($l->t('Add note')); ?></a></li>
|
||||||
|
<li id="all-notes"><a href="#" class="icon-home svg"><?php p($l->t('All notes')); ?></a></li>
|
||||||
|
|
||||||
<li class="collapsible open">
|
<li class="collapsible open">
|
||||||
<button class="collapse"></button>
|
<button class="collapse"></button>
|
||||||
|
|||||||
Reference in New Issue
Block a user