this.purgeDeleted();
break;
+ case 'oa_help':
+ this.toggleHelp();
+ break;
+
case 'ctx_vfolder_edit':
tmp = { edit_query: e.findElement('LI').retrieve('mbox') };
// Fall through
clearPreviewPane: function()
{
+ var sel, txt;
+
this.loadingImg('msg', false);
$('previewMsg').hide();
$('previewPane').scrollTop = 0;
- $('previewInfo').show();
+
+ sel = this.selectedCount();
+ switch (sel) {
+ case 0:
+ txt = DIMP.text.nomessages;
+ break;
+
+ case 1:
+ txt = 1 + ' ' + DIMP.text.message;
+ break;
+
+ default:
+ txt = sel + ' ' + DIMP.text.messages;
+ break;
+ }
+ $('previewInfo').update(txt + ' ' + DIMP.text.selected + '.').show();
+
this.pp = null;
},
e.stop();
return;
+ case 'helptext_close':
+ this.toggleHelp();
+ e.stop();
+ return;
+
default:
if (elt.hasClassName('printAtc')) {
DimpCore.popupWindow(DimpCore.addURLParam(DIMP.conf.URI_VIEW, { uid: this.pp.imapuid, mailbox: this.pp.view, actionID: 'print_attach', id: elt.readAttribute('mimeid') }, true), this.pp.imapuid + '|' + this.pp.view + '|print', IMP.printWindow);
}
},
+ toggleHelp: function()
+ {
+ Effect.toggle($('helptext').down('DIV'), 'blind', {
+ duration: 0.75,
+ queue: {
+ position: 'end',
+ scope: 'DimpHelp',
+ limit: 2
+ }
+ });
+ },
+
/* Handle rename folder actions. */
renameFolder: function(folder)
{
<div id="previewPane" style="display:none">
<span id="msgLoading" class="loadingImg" style="display:none"></span>
- <div id="previewInfo" style="display:none">
- <?php echo _("To preview a message, select it from the message list.") ?>
- <br />
-<?php if ($browser->isBrowser('opera')): ?>
- <?php echo _("A left click") ?> + <span class="kbd"><?php echo _("Shift") ?></span> + <span class="kbd"><?php echo _("Ctrl") ?></span> <?php echo _("will display available actions.") ?>
-<?php else: ?>
- <?php echo _("A right-click on a message or a folder will display available actions.") ?>
-<?php endif; ?>
- <br />
- <?php printf(_("Click on a message while holding down the %s key to select multiple messages. To select a range of messages, click the first message of the range, navigate to the last message of the range, and then click on the last message while holding down the %s key."), '<span class="kbd">' . _("Ctrl") . '</span>', '<span class="kbd">' . _("Shift") . '</span>') ?><br /><br />
- <?php echo _("The following keyboard shortcuts are available:") ?><br />
- <span class="iconImg keyupImg"></span> / <span class="iconImg keydownImg"></span> : <?php echo _("Move up/down through the message list.") ?><br />
- <span class="kbd"><?php echo _("PgUp") ?></span> / <span class="kbd"><?php echo _("PgDown") ?></span> : <?php echo _("Move one page up/down through the message list.") ?><br />
- <span class="kbd"><?php echo _("Alt") ?></span> + <span class="kbd"><?php echo _("PgUp") ?></span> / <span class="kbd"><?php echo _("PgDown") ?></span> : <?php echo _("Scroll up/down through the display of the previewed message.") ?><br />
- <span class="kbd"><?php echo _("Home") ?></span> / <span class="kbd"><?php echo _("End") ?></span> : <?php echo _("Move to the beginning/end of the message list.") ?><br />
- <span class="kbd"><?php echo _("Del") ?></span> : <?php echo _("Delete the currently selected message(s).") ?> <?php printf(_("%s will delete the current message and move to the next message if a single message is selected."), '<span class="kbd">' . _("Shift") . '</span> + <span class="kbd">' . _("Del") . '</span>') ?><br />
- <span class="kbd"><?php echo _("Shift") ?></span> + <span class="kbd"><?php echo _("N") ?></span> : <?php echo _("Move to the next unseen message (non-search folders only).") ?><br />
- <span class="kbd"><?php echo _("Enter") ?></span> : <?php echo _("Open message in a popup window.") ?><br />
- <span class="kbd"><?php echo _("Ctrl") ?></span> + <span class="kbd"><?php echo 'A' ?></span> : <?php echo _("Select all messages in the current mailbox.") ?><br />
- </div>
-
+ <div id="previewInfo" style="display:none"></div>
<div id="previewMsg" style="display:none">
<div class="msgHeaders">
<div id="toggleHeaders">
<a id="oa_purge_deleted"><span class="iconImg"></span><?php echo _("Purge Deleted") ?></a>
<a id="oa_undeleted"><span class="iconImg"></span><?php echo _("Undelete") ?></a>
<?php endif; ?>
+ <div class="sep"></div>
+ <a id="oa_help"><span class="iconImg"></span><?php echo _("Help") ?></a>
</div>
<div class="context" id="ctx_filter" style="display:none">
<span class="dispaddrlist" style="display:none"></span>
</span>
</div>
+
+<div id="helptext">
+ <div style="display:none">
+ <span class="iconImg closeImg" id="helptext_close" title="<?php echo _("Close") ?>"></span>
+ <?php echo _("To preview a message, select it from the message list.") ?>
+ <br />
+<?php if ($browser->isBrowser('opera')): ?>
+ <?php echo _("A left click") ?> + <span class="kbd"><?php echo _("Shift") ?></span> + <span class="kbd"><?php echo _("Ctrl") ?></span> <?php echo _("will display available actions.") ?>
+<?php else: ?>
+ <?php echo _("A right-click on a message or a folder will display available actions.") ?>
+<?php endif; ?>
+ <br />
+ <?php printf(_("Click on a message while holding down the %s key to select multiple messages. To select a range of messages, click the first message of the range, navigate to the last message of the range, and then click on the last message while holding down the %s key."), '<span class="kbd">' . _("Ctrl") . '</span>', '<span class="kbd">' . _("Shift") . '</span>') ?><br /><br />
+ <?php echo _("The following keyboard shortcuts are available:") ?><br />
+ <span class="iconImg keyupImg"></span> / <span class="iconImg keydownImg"></span> : <?php echo _("Move up/down through the message list.") ?><br />
+ <span class="kbd"><?php echo _("PgUp") ?></span> / <span class="kbd"><?php echo _("PgDown") ?></span> : <?php echo _("Move one page up/down through the message list.") ?><br />
+ <span class="kbd"><?php echo _("Alt") ?></span> + <span class="kbd"><?php echo _("PgUp") ?></span> / <span class="kbd"><?php echo _("PgDown") ?></span> : <?php echo _("Scroll up/down through the display of the previewed message.") ?><br />
+ <span class="kbd"><?php echo _("Home") ?></span> / <span class="kbd"><?php echo _("End") ?></span> : <?php echo _("Move to the beginning/end of the message list.") ?><br />
+ <span class="kbd"><?php echo _("Del") ?></span> : <?php echo _("Delete the currently selected message(s).") ?> <?php printf(_("%s will delete the current message and move to the next message if a single message is selected."), '<span class="kbd">' . _("Shift") . '</span> + <span class="kbd">' . _("Del") . '</span>') ?><br />
+ <span class="kbd"><?php echo _("Shift") ?></span> + <span class="kbd"><?php echo _("N") ?></span> : <?php echo _("Move to the next unseen message (non-search folders only).") ?><br />
+ <span class="kbd"><?php echo _("Enter") ?></span> : <?php echo _("Open message in a popup window.") ?><br />
+ <span class="kbd"><?php echo _("Ctrl") ?></span> + <span class="kbd"><?php echo 'A' ?></span> : <?php echo _("Select all messages in the current mailbox.") ?>
+ </div>
+</div>