thomascube
2008-02-28 bf36a9a7e313c05d206791b89fe26f7b06bb8d70
Fix quirky message selection

2 files modified
6 ■■■■ changed files
program/js/app.js 2 ●●● patch | view | raw | blame | history
program/js/list.js 4 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -695,7 +695,7 @@
        if (props._row.uid)
          {
          uid = props._row.uid;
          this.message_list.dont_select = true;
          // toggle read/unread
          if (this.message_list.rows[uid].deleted) {
            flag = 'undelete';
program/js/list.js
@@ -207,13 +207,13 @@
 */
drag_row: function(e, id)
{
  this.in_selection_before = this.in_selection(id) ? id : false;
  // don't do anything (another action processed before)
  var evtarget = rcube_event.get_target(e);
  if (this.dont_select || (evtarget && (evtarget.tagName == 'INPUT' || evtarget.tagName == 'IMG')))
    return false;
  this.in_selection_before = this.in_selection(id) ? id : false;
  // selects currently unselected row
  if (!this.in_selection_before)
  {