Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/navigate.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/js/navigate.js b/js/navigate.js
index fc04ac5..514d37f 100644
--- a/js/navigate.js
+++ b/js/navigate.js
@@ -106,13 +106,19 @@ Navigate.prototype = {
if (nav.options !== undefined) {
- // var button = $('<button>', {class: 'collapse'});
- // li.append(button);
+
+ aIcon.on('click', function () {
+ var li = $(this).closest('li');
+ if (li.hasClass('open')) {
+ li.removeClass('open');
+ } else {
+ li.addClass('open');
+ }
+ });
for (var j = 0; j < nav.options.length; j++) {
var sub = nav.options[j];
- console.log('sub: ' + JSON.stringify(sub));
var subA = $('<a>', {
href: '#',
text: sub.title