[Tickets #5507] Re: message focus

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Jun 27 22:21:34 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5507
-----------------------------------------------------------------------
 Ticket             | 5507
 Updated By         | adrieder at sbox.tugraz.at
 Summary            | message focus
 Queue              | DIMP
 Type               | Enhancement
 State              | Assigned
 Priority           | 1. Low
 Owners             | Michael Slusarz
-----------------------------------------------------------------------


adrieder at sbox.tugraz.at (2007-06-27 15:21) wrote:

even better.

--- dimp/js/src/DimpCore.js.ori Wed Jun 27 20:32:05 2007
+++ dimp/js/src/DimpCore.js     Thu Jun 28 00:20:01 2007
@@ -1262,7 +1262,6 @@
                     uids.push(s.uid);
                     this.viewport.updateFlag(s.uid, 'deleted', true,
true);
                 }.bind(this));
-                this.clearSelected();
             }

             if (uids.length != 0) {
@@ -1438,10 +1437,13 @@
             return;
         }

+       var curr_row = this.viewport.getRowById(this.selected.first());
+       var move = (curr_row.rownum ==
this.viewport.getMetaData('total_rows')) ? -1 : 1;
+       var new_row = curr_row.rownum + move;
         this.viewport.remove(r.response.uids, r.response.cacheid);
-        this.clearSelected();
-        this.toggleButtons();
-        this.clearPreviewPane();
+       this.clearSelected();
+       this.clearPreviewPane();
+       if(this.viewport.getMetaData('total_rows') > 1) {
this.moveSelected(new_row, true); }
     },

     emptyFolderCallback: function(r) {




More information about the bugs mailing list