From 7718f6247d7f10f464b8b631b736fa2921e8a273 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Sun, 8 Mar 2009 16:51:38 +0000 Subject: Changes necessary to implement a move-message dropdown button. --- roundcubemail/program/include/main.inc | 3 ++- roundcubemail/program/localization/en_US/labels.inc | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program') diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 9adcd4cfc..c243d7b1d 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -1043,6 +1043,7 @@ function rcmail_render_folder_tree_html(&$arrFolders, &$mbox_name, &$jslist, $at $maxlength = intval($attrib['maxlength']); $realnames = (bool)$attrib['realnames']; $msgcounts = $RCMAIL->imap->get_cache('messagecount'); + $mailboxaction = ($attrib['mailboxaction']) ? $attrib['mailboxaction'] : 'list'; $idx = 0; $out = ''; @@ -1100,7 +1101,7 @@ function rcmail_render_folder_tree_html(&$arrFolders, &$mbox_name, &$jslist, $at $html_name = Q($foldername . ($unread ? " ($unread)" : '')); $link_attrib = $folder['virtual'] ? array() : array( 'href' => rcmail_url('', array('_mbox' => $folder['id'])), - 'onclick' => sprintf("return %s.command('list','%s',this)", JS_OBJECT_NAME, $js_name), + 'onclick' => sprintf("return %s.command('%s','%s',this)", JS_OBJECT_NAME, $mailboxaction, $js_name), 'title' => $title, ); diff --git a/roundcubemail/program/localization/en_US/labels.inc b/roundcubemail/program/localization/en_US/labels.inc index 29e2620c5..3b73363bd 100644 --- a/roundcubemail/program/localization/en_US/labels.inc +++ b/roundcubemail/program/localization/en_US/labels.inc @@ -177,7 +177,12 @@ $labels['buttonbarmark'] = 'Mark'; $labels['buttonbarreply'] = 'Reply'; $labels['buttonbarreplyall'] = 'Reply to all'; $labels['buttonbarforward'] = 'Forward'; -$labels['archivemessage'] = 'Move to archives folder'; +$labels['buttonbarmove'] = 'Move'; +$labels['buttonbarcopy'] = 'Copy'; + +$labels['archivemessages'] = 'Move to archives folder'; +$labels['movemessages'] = 'Move to selected folder'; +$labels['copymessages'] = 'Copy to selected folder'; // message compose $labels['compose'] = 'Compose a message'; -- cgit v1.2.3