alecpl
2012-03-15 f451a1ca5eaff9dd52fd6ce99e2bb189dc539140
program/js/app.js
@@ -171,7 +171,7 @@
    }
    // enable general commands
    this.enable_command('logout', 'mail', 'addressbook', 'settings', 'save-pref', 'compose', 'undo', true);
    this.enable_command('logout', 'mail', 'addressbook', 'settings', 'save-pref', 'compose', 'undo', 'switch-task', true);
    if (this.env.permaurl)
      this.enable_command('permaurl', true);
@@ -1407,8 +1407,9 @@
      div.removeClass('expanded').addClass('collapsed');
      this.env.collapsed_folders = this.env.collapsed_folders+'&'+urlencode(name)+'&';
      // select parent folder if one of its childs is currently selected
      if (this.env.mailbox.indexOf(name + this.env.delimiter) == 0)
      // select the folder if one of its childs is currently selected
      // don't select if it's virtual (#1488346)
      if (this.env.mailbox.indexOf(name + this.env.delimiter) == 0 && !$(li).hasClass('virtual'))
        this.command('list', name);
    }
    else
@@ -3533,9 +3534,9 @@
      mod = rcube_event.get_modifier(e);
    switch (key) {
      case 38:  // key up
      case 40:  // key down
        if (!this.ksearch_pane)
      case 38:  // arrow up
      case 40:  // arrow down
        if (!this.ksearch_visible())
          break;
        var dir = key==38 ? 1 : 0;