Roundcube Community Forum

 

Checkboxes and Single Click messages (like Gmail)

Started by @dmin, February 17, 2011, 11:22:32 AM

Previous topic - Next topic

@dmin

Hello all,

I've been using umount's fantastic check box plugin - https://github.com/umount/rcplugin_chbox

One things I wanted to change was if you have the preview pane, to just single click messages to open them like in gmail. I was able to accomplish this by editing the following lines of program/js/app.js:

Change:

   if (list.multi_selecting || !this.env.contentframe)
      return;


to:

   if (list.multi_selecting || !this.env.contentframe)
      var uid = list.get_single_selection();
      this.show_message(uid, false, false);


or here's a diff:

1451,1452c1451
<       var uid = list.get_single_selection();
<       this.show_message(uid, false, false);
---
>       return;


This even still keeps the preview pane functionality in tact.

I was wondering if I wanted to make this a plugin or part of a skin can someone help me with that so I don't have to edit the core app.js? Thanks!