mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 07:37:18 +01:00
Make the filter folders collapsibles
This commit is contained in:
@@ -562,6 +562,14 @@ View.prototype = {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#colors-folder').click(function () {
|
||||||
|
$(this).toggleClass("open");
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#notes-folder').click(function () {
|
||||||
|
$(this).toggleClass("open");
|
||||||
|
});
|
||||||
|
|
||||||
// show app menu
|
// show app menu
|
||||||
$('#app-navigation .app-navigation-entry-utils-menu-button').click(function () {
|
$('#app-navigation .app-navigation-entry-utils-menu-button').click(function () {
|
||||||
var entry = $(this).closest('.note');
|
var entry = $(this).closest('.note');
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
<li id="all-notes"><a href="#" class="icon-home svg"><?php p($l->t('All notes')); ?></a></li>
|
<li id="all-notes"><a href="#" class="icon-home svg"><?php p($l->t('All notes')); ?></a></li>
|
||||||
<li id="shared-with-you"><a href="#" class="icon-share svg"><?php p($l->t('Shared with you')); ?></a></li>
|
<li id="shared-with-you"><a href="#" class="icon-share svg"><?php p($l->t('Shared with you')); ?></a></li>
|
||||||
<li id="shared-by-you"><a href="#" class="icon-share svg"><?php p($l->t('Shared with others')); ?></a></li>
|
<li id="shared-by-you"><a href="#" class="icon-share svg"><?php p($l->t('Shared with others')); ?></a></li>
|
||||||
|
<li id="colors-folder" class="collapsible open">
|
||||||
<li class="collapsible open">
|
|
||||||
<button class="collapse"></button>
|
<button class="collapse"></button>
|
||||||
<a href="#" class="icon-search svg"><?php p($l->t('Colors')); ?></a>
|
<a href="#" class="icon-search svg"><?php p($l->t('Colors')); ?></a>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -21,8 +20,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li id="notes-folder" class="collapsible open">
|
||||||
<li class="collapsible open">
|
|
||||||
<button class="collapse"></button>
|
<button class="collapse"></button>
|
||||||
<a href="#" class="icon-folder svg"><?php p($l->t('Notes')); ?></a>
|
<a href="#" class="icon-folder svg"><?php p($l->t('Notes')); ?></a>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user