Changeset 1508 in subversion
- Timestamp:
- Jun 11, 2008 3:26:08 PM (5 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap.php (modified) (1 diff)
-
program/js/app.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r1493 r1508 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2008/06/11 (alec) 5 ---------- 6 - Don't call expunge and don't remove message row after message move 7 if flag_for_deletion is set to true (#1485002) 3 8 4 9 2008/06/08 (alec) -
trunk/roundcubemail/program/include/rcube_imap.php
r1490 r1508 1420 1420 // really deleted from the source mailbox 1421 1421 if ($moved) { 1422 $this->_expunge($from_mbox, FALSE); 1423 $this->_clear_messagecount($from_mbox); 1424 $this->_clear_messagecount($to_mbox); 1422 // but only when flag_for_deletion is set to false 1423 if (!rcmail::get_instance()->config->get('flag_for_deletion', false)) 1424 { 1425 $this->_expunge($from_mbox, FALSE); 1426 $this->_clear_messagecount($from_mbox); 1427 $this->_clear_messagecount($to_mbox); 1428 } 1425 1429 } 1426 1430 // moving failed -
trunk/roundcubemail/program/js/app.js
r1464 r1508 1398 1398 this.set_busy(true, 'movingmessage'); 1399 1399 } 1400 else 1400 else if (!this.env.flag_for_deletion) 1401 1401 this.show_contentframe(false); 1402 1402 … … 1404 1404 this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', false); 1405 1405 1406 this._with_selected_messages('moveto', lock, add_url );1406 this._with_selected_messages('moveto', lock, add_url, (this.env.flag_for_deletion ? false : true)); 1407 1407 }; 1408 1408 … … 1454 1454 1455 1455 this.show_contentframe(false); 1456 this._with_selected_messages('delete', false, '&_from='+(this.env.action ? this.env.action : '') );1456 this._with_selected_messages('delete', false, '&_from='+(this.env.action ? this.env.action : ''), true); 1457 1457 }; 1458 1458 1459 1459 // Send a specifc request with UIDs of all selected messages 1460 1460 // @private 1461 this._with_selected_messages = function(action, lock, add_url )1461 this._with_selected_messages = function(action, lock, add_url, remove) 1462 1462 { 1463 1463 var a_uids = new Array(); … … 1468 1468 { 1469 1469 var selection = this.message_list.get_selection(); 1470 var rows = this.message_list.rows; 1470 1471 var id; 1471 1472 for (var n=0; n<selection.length; n++) … … 1474 1475 a_uids[a_uids.length] = id; 1475 1476 1476 this.message_list.remove_row(id, (n == selection.length-1)); 1477 if (remove) 1478 this.message_list.remove_row(id, (n == selection.length-1)); 1479 else 1480 { 1481 rows[id].deleted = true; 1482 1483 if (rows[id].classname.indexOf('deleted')<0) 1484 { 1485 rows[id].classname += ' deleted'; 1486 this.set_classname(rows[id].obj, 'deleted', true); 1487 } 1488 1489 if (rows[id].icon && this.env.deletedicon) 1490 rows[id].icon.src = this.env.deletedicon; 1491 } 1477 1492 } 1478 1493 }
Note: See TracChangeset
for help on using the changeset viewer.
