Author Topic: Checkboxes and Single Click messages (like Gmail)  (Read 5292 times)

Offline @dmin

  • Jr. Member
  • **
  • Posts: 14
Checkboxes and Single Click messages (like Gmail)
« on: February 17, 2011, 11:22:32 AM »
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:

Code: [Select]
   if (list.multi_selecting || !this.env.contentframe)
      return;


to:

Code: [Select]
   if (list.multi_selecting || !this.env.contentframe)
      var uid = list.get_single_selection();
      this.show_message(uid, false, false);


or here's a diff:

Code: [Select]
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!