*
* @param Horde_Variables $vars None used.
*/
- public function LogOut($vars)
+ public function logOut($vars)
{
Horde::redirect(str_replace('&', '&', Horde::getServiceLink('logout', $this->_app)));
exit;
this.highlightSidebar('appportal');
location.hash = encodeURIComponent(loc);
DimpCore.setTitle(DIMP.text.portal);
- DimpCore.doAction('ShowPortal', {}, { callback: this._portalCallback.bind(this) });
+ DimpCore.doAction('showPortal', {}, { callback: this._portalCallback.bind(this) });
break;
case 'options':
this.viewport = new ViewPort({
// Mandatory config
- ajax_url: DIMP.conf.URI_AJAX + 'ViewPort',
+ ajax_url: DIMP.conf.URI_AJAX + 'viewPort',
container: container,
onContent: function(r, mode) {
var bg, re, u,
case 'ctx_folder_empty':
tmp = baseelt.up('LI');
if (window.confirm(DIMP.text.empty_folder.replace(/%s/, tmp.readAttribute('title')))) {
- DimpCore.doAction('EmptyFolder', { mbox: tmp.retrieve('mbox') }, { callback: this._emptyFolderCallback.bind(this) });
+ DimpCore.doAction('emptyFolder', { mbox: tmp.retrieve('mbox') }, { callback: this._emptyFolderCallback.bind(this) });
}
break;
case 'ctx_vfolder_delete':
tmp = baseelt.up('LI');
if (window.confirm(DIMP.text.delete_folder.replace(/%s/, tmp.readAttribute('title')))) {
- DimpCore.doAction('DeleteMailbox', { mbox: tmp.retrieve('mbox') }, { callback: this.mailboxCallback.bind(this) });
+ DimpCore.doAction('deleteMailbox', { mbox: tmp.retrieve('mbox') }, { callback: this.mailboxCallback.bind(this) });
}
break;
this.loadingImg('msg', true);
- DimpCore.doAction('ShowPreview', this.viewport.addRequestParams(params || {}), { uids: this.viewport.createSelection('dataob', this.pp), callback: this._loadPreviewCallback.bind(this) });
+ DimpCore.doAction('showPreview', this.viewport.addRequestParams(params || {}), { uids: this.viewport.createSelection('dataob', this.pp), callback: this._loadPreviewCallback.bind(this) });
},
_loadPreviewCallback: function(resp)
}
$(check).down('A').update('[' + DIMP.text.check + ']');
- DimpCore.doAction('Poll', args);
+ DimpCore.doAction('poll', args);
},
pollCallback: function(r)
dropbase = (drop == $('dropbase'));
if (dropbase ||
(ftype != 'special' && !this.isSubfolder(drag, drop))) {
- DimpCore.doAction('RenameMailbox', { old_name: drag.retrieve('mbox'), new_parent: dropbase ? '' : foldername, new_name: drag.retrieve('l') }, { callback: this.mailboxCallback.bind(this) });
+ DimpCore.doAction('renameMailbox', { old_name: drag.retrieve('mbox'), new_parent: dropbase ? '' : foldername, new_name: drag.retrieve('l') }, { callback: this.mailboxCallback.bind(this) });
}
} else if (ftype != 'container') {
sel = this.viewport.getSelected();
if (uids.size()) {
if (e.memo.dragevent.ctrlKey) {
- DimpCore.doAction('CopyMessages', this.viewport.addRequestParams({ mboxto: foldername }), { uids: uids });
+ DimpCore.doAction('copyMessages', this.viewport.addRequestParams({ mboxto: foldername }), { uids: uids });
} else if (this.folder != foldername) {
// Don't allow drag/drop to the current folder.
this.updateFlag(uids, '\\deleted', true);
- DimpCore.doAction('MoveMessages', this.viewport.addRequestParams({ mboxto: foldername }), { uids: uids });
+ DimpCore.doAction('moveMessages', this.viewport.addRequestParams({ mboxto: foldername }), { uids: uids });
}
}
}
case 'rename':
folder = folder.up('LI');
if (folder.retrieve('l') != val) {
- action = 'RenameMailbox';
+ action = 'renameMailbox';
params = {
old_name: folder.retrieve('mbox'),
new_parent: folder.up().hasClassName('folderlist') ? '' : folder.up(1).previous().retrieve('mbox'),
case 'create':
case 'createsub':
- action = 'CreateMailbox';
+ action = 'createMailbox';
params = { mbox: val };
if (mode == 'createsub') {
params.parent = folder.up('LI').retrieve('mbox');
cback = this._folderLoadCallback.bind(this);
}
- DimpCore.doAction('ListMailboxes', params, { callback: cback });
+ DimpCore.doAction('listMailboxes', params, { callback: cback });
},
// Folder actions.
subscribeFolder: function(f, sub)
{
var fid = this.getFolderId(f);
- DimpCore.doAction('Subscribe', { mbox: f, sub: Number(sub) });
+ DimpCore.doAction('subscribe', { mbox: f, sub: Number(sub) });
if (this.showunsub) {
[ $(fid) ].invoke(sub ? 'removeClassName' : 'addClassName', 'unsubFolder');
reportSpam: function(spam, opts)
{
opts = opts || {};
- if (this._doMsgAction('ReportSpam', opts, { spam: spam })) {
+ if (this._doMsgAction('reportSpam', opts, { spam: spam })) {
// Indicate to the user that something is happening (since spam
// reporting may not be instantaneous).
this.loadingImg('viewport', true);
blacklist: function(blacklist, opts)
{
opts = opts || {};
- this._doMsgAction('Blacklist', opts, { blacklist: blacklist });
+ this._doMsgAction('blacklist', opts, { blacklist: blacklist });
},
// opts = 'mailbox', 'uid'
opts.vs = vs;
- this._doMsgAction('DeleteMessages', opts, {});
+ this._doMsgAction('deleteMessages', opts, {});
this.updateFlag(vs, '\\deleted', true);
},
this.updateFlag(vs, flag, set);
if (!opts.noserver) {
- DimpCore.doAction('FlagMessages', this.viewport.addRequestParams({ flags: flags.toJSON(), view: this.folder }), { uids: vs });
+ DimpCore.doAction('flagMessages', this.viewport.addRequestParams({ flags: flags.toJSON(), view: this.folder }), { uids: vs });
}
},
// mbox = (string) The mailbox to flag
flagAll: function(type, set, mbox)
{
- DimpCore.doAction('FlagAll', { flags: [ type ].toJSON(), set: Number(set), mbox: mbox }, { callback: this._flagAllCallback.bind(this) });
+ DimpCore.doAction('flagAll', { flags: [ type ].toJSON(), set: Number(set), mbox: mbox }, { callback: this._flagAllCallback.bind(this) });
},
hasFlag: function(f, r)
/* Miscellaneous folder actions. */
purgeDeleted: function()
{
- DimpCore.doAction('PurgeDeleted', this.viewport.addRequestParams({}));
+ DimpCore.doAction('purgeDeleted', this.viewport.addRequestParams({}));
},
modifyPoll: function(folder, add)
{
- DimpCore.doAction('ModifyPoll', { add: Number(add), mbox: folder }, { callback: this._modifyPollCallback.bind(this) });
+ DimpCore.doAction('modifyPoll', { add: Number(add), mbox: folder }, { callback: this._modifyPollCallback.bind(this) });
},
_modifyPollCallback: function(r)
logout: function(url)
{
this.is_logout = true;
- this.redirect(url || (DIMP.conf.URI_AJAX + 'LogOut'));
+ this.redirect(url || (DIMP.conf.URI_AJAX + 'logOut'));
},
redirect: function(url, force)
break;
case 'ctx_contacts_add':
- this.doAction('AddContact', { name: baseelt.retrieve('personal'), email: baseelt.retrieve('email') }, {}, true);
+ this.doAction('addContact', { name: baseelt.retrieve('personal'), email: baseelt.retrieve('email') }, {}, true);
break;
}
},
/* Catch dialog actions. */
document.observe('IMPDialog:success', function(e) {
switch (e.memo) {
- case 'PGPPersonal':
- case 'PGPSymmetric':
- case 'SMIMEPersonal':
+ case 'pgpPersonal':
+ case 'pgpSymmetric':
+ case 'smimePersonal':
IMPDialog.noreload = true;
this.reloadMessage({});
break;
!DIMP.conf_compose.qreply) {
DIMP.baseWindow.focus();
}
- DimpCore.doAction(DIMP.conf_compose.auto_save_interval_val ? 'DeleteDraft' : 'CancelCompose', { imp_compose: $F('composeCache') }, { ajaxopts: { asynchronous: DIMP.conf_compose.qreply } });
+ DimpCore.doAction(DIMP.conf_compose.auto_save_interval_val ? 'deleteDraft' : 'cancelCompose', { imp_compose: $F('composeCache') }, { ajaxopts: { asynchronous: DIMP.conf_compose.qreply } });
this.updateDraftsMailbox();
return this.closeCompose();
}
this.skip_spellcheck = true;
}
- if (action == 'SendMessage' || action == 'SaveDraft') {
+ if (action == 'sendMessage' || action == 'saveDraft') {
switch (action) {
- case 'SendMessage':
+ case 'sendMessage':
if (($F('subject') == '') &&
!window.confirm(DIMP.text_compose.nosubject)) {
return;
c.setStyle({ cursor: 'wait' });
this.skip_spellcheck = false;
- if (action == 'AddAttachment') {
+ if (action == 'addAttachment') {
// We need a submit action here because browser security models
// won't let us access files on user's filesystem otherwise.
this.uploading = true;
// Can't disable until we send the message - or else nothing
// will get POST'ed.
- if (action == 'SendMessage' || action == 'SaveDraft') {
+ if (action == 'sendMessage' || action == 'saveDraft') {
this.setDisabled(true);
}
}
this.rte.destroy();
this.RTELoading('show');
- DimpCore.doAction('Html2Text', { text: text }, { callback: this.setMessageText.bind(this), ajaxopts: { asynchronous: false } });
+ DimpCore.doAction('html2Text', { text: text }, { callback: this.setMessageText.bind(this), ajaxopts: { asynchronous: false } });
this.RTELoading('hide');
} else {
if (!noupdate) {
- DimpCore.doAction('Text2Html', { text: $F('composeMessage') }, { callback: this.setMessageText.bind(this), ajaxopts: { asynchronous: false } });
+ DimpCore.doAction('text2Html', { text: $F('composeMessage') }, { callback: this.setMessageText.bind(this), ajaxopts: { asynchronous: false } });
}
config = Object.clone(IMP.ckeditor_config);
this.auto_save_interval = new PeriodicalExecuter(function() {
var curr_hash = MD5.hash($('to', 'cc', 'bcc', 'subject').invoke('getValue').join('\0') + (IMP_Compose_Base.editor_on ? this.rte.getData() : $F('composeMessage')));
if (this.last_msg && curr_hash != this.last_msg) {
- this.uniqueSubmit('AutoSaveDraft');
+ this.uniqueSubmit('autoSaveDraft');
}
this.last_msg = curr_hash;
}.bind(this), DIMP.conf_compose.auto_save_interval_val * 60);
if (!$('attach_list').childElements().size()) {
$('attach_list').hide();
}
- DimpCore.doAction('DeleteAttach', { atc_indices: ids, imp_compose: $F('composeCache') });
+ DimpCore.doAction('deleteAttach', { atc_indices: ids, imp_compose: $F('composeCache') });
},
resizeMsgArea: function()
uploadAttachment: function()
{
var u = $('upload');
- this.uniqueSubmit('AddAttachment');
+ this.uniqueSubmit('addAttachment');
u.next().hide();
u.replace(new Element('SPAN', { id: 'upload_wait' }).insert(DIMP.text_compose.uploading + ' (' + $F(u) + ')'));
},
case 'draft_button':
case 'send_button':
if (!this.disabled) {
- this.uniqueSubmit(id == 'send_button' ? 'SendMessage' : 'SaveDraft');
+ this.uniqueSubmit(id == 'send_button' ? 'sendMessage' : 'saveDraft');
}
break;
});
if (id.startsWith('reply')) {
$('to_loading_img').show();
- DimpCore.doAction('GetReplyData', { headeronly: 1, imp_compose: $F('composeCache'), type: 'reply' }, { callback: this.swapToAddressCallback.bind(this) });
+ DimpCore.doAction('getReplyData', { headeronly: 1, imp_compose: $F('composeCache'), type: 'reply' }, { callback: this.swapToAddressCallback.bind(this) });
} else {
- DimpCore.doAction('GetForwardData', { dataonly: 1, imp_compose: $F('composeCache'), type: (id == 'fwdattachnotice' ? 'forward_body' : 'forward_attach') }, { callback: this.forwardAddCallback.bind(this) });
+ DimpCore.doAction('getForwardData', { dataonly: 1, imp_compose: $F('composeCache'), type: (id == 'fwdattachnotice' ? 'forward_body' : 'forward_attach') }, { callback: this.forwardAddCallback.bind(this) });
}
e.stop();
return;
/* Catch dialog actions. */
document.observe('IMPDialog:success', function(e) {
switch (e.memo) {
- case 'PGPPersonal':
- case 'PGPSymmetric':
- case 'SMIMEPersonal':
+ case 'pgpPersonal':
+ case 'pgpSymmetric':
+ case 'smimePersonal':
IMPDialog.noreload = true;
ImpCompose.uniqSubmit('send_message');
break;
case 'reply_all':
case 'reply_auto':
case 'reply_list':
- func = 'GetReplyData';
+ func = 'getReplyData';
break;
case 'forward_auto':
case 'forward_attach':
case 'forward_body':
case 'forward_both':
- func = 'GetForwardData';
+ func = 'getForwardData';
break;
}
* 'd' - (array) Mailboxes that were deleted.
* </pre>
*/
- public function CreateMailbox()
+ public function createMailbox()
{
if (!$this->_vars->mbox) {
return false;
* 'd' - (array) Mailboxes that were deleted.
* </pre>
*/
- public function DeleteMailbox()
+ public function deleteMailbox()
{
if (!$this->_vars->mbox) {
return false;
* 'd' - (array) Mailboxes that were deleted.
* </pre>
*/
- public function RenameMailbox()
+ public function renameMailbox()
{
if (!$this->_vars->old_name || !$this->_vars->new_name) {
return false;
* 'mbox' - (string) The mailbox that was emptied.
* </pre>
*/
- public function EmptyMailbox()
+ public function emptyMailbox()
{
if (!$this->_vars->mbox) {
return false;
* 'set' - (integer) 1 if the flag was set. Unset otherwise.
* </pre>
*/
- public function FlagAll()
+ public function flagAll()
{
$flags = Horde_Serialize::unserialize($this->_vars->flags, Horde_Serialize::JSON);
if (!$this->_vars->mbox || empty($flags)) {
* 'quota' - (array) See _getQuota().
* </pre>
*/
- public function ListMailboxes()
+ public function listMailboxes()
{
$imptree = $GLOBALS['injector']->getInstance('IMP_Imap_Tree');
* 'ViewPort' - (object) See _viewPortData().
* </pre>
*/
- public function Poll()
+ public function poll()
{
$changed = false;
* as the values.
* </pre>
*/
- public function ModifyPoll()
+ public function modifyPoll()
{
if (!$this->_vars->mbox) {
return false;
*
* @return boolean True on success, false on failure.
*/
- public function Subscribe()
+ public function subscribe()
{
if (!$GLOBALS['prefs']->getValue('subscribe')) {
return false;
* 'ViewPort' - (object) See _viewPortData().
* </pre>
*/
- public function ViewPort()
+ public function viewPort()
{
if (!$this->_vars->view) {
return false;
* @return mixed False on failure, or an object (see
* _generateDeleteResult() for format).
*/
- public function MoveMessages()
+ public function moveMessages()
{
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($this->_vars->uid);
if (!$this->_vars->mboxto || empty($indices)) {
* as the values.
* </pre>
*/
- public function CopyMessages()
+ public function copyMessages()
{
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($this->_vars->uid);
if (!$this->_vars->mboxto || empty($indices)) {
* 'ViewPort' - (object) See _viewPortData().
* </pre>
*/
- public function FlagMessages()
+ public function flagMessages()
{
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($this->_vars->uid);
if (!$this->_vars->flags || empty($indices)) {
* @return mixed False on failure, or an object (see
* _generateDeleteResult() for format).
*/
- public function DeleteMessages()
+ public function deleteMessages()
{
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($this->_vars->uid);
if (empty($indices)) {
*
* @return boolean True on success, false on failure.
*/
- public function AddContact()
+ public function addContact()
{
// Allow name to be empty.
if (!$this->_vars->email) {
* @return mixed False on failure, or an object (see
* _generateDeleteResult() for format).
*/
- public function ReportSpam()
+ public function reportSpam()
{
$change = $this->_changed(false);
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($this->_vars->uid);
* @return mixed False on failure, or an object (see
* _generateDeleteResult() for format).
*/
- public function Blacklist()
+ public function blacklist()
{
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($this->_vars->uid);
if (empty($indices)) {
* entry - don't do mailbox poll here).
* </pre>
*/
- public function ShowPreview()
+ public function showPreview()
{
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($this->_vars->uid);
if (count($indices) != 1) {
* 'text' - (string) The converted text.
* </pre>
*/
- public function Html2Text()
+ public function html2Text()
{
$result = new stdClass;
// Need to replace line endings or else IE won't display line endings
* 'text' - (string) The converted text.
* </pre>
*/
- public function Text2Html()
+ public function text2Html()
{
$result = new stdClass;
$result->text = Horde_Text_Filter::filter($this->_vars->text, 'text2html', array('parselevel' => Horde_Text_Filter_Text2html::MICRO_LINKURL));
* 'ViewPort' - (object) See _viewPortData().
* </pre>
*/
- public function GetForwardData()
+ public function getForwardData()
{
try {
$imp_compose = IMP_Compose::singleton($this->_vars->imp_compose);
* 'ViewPort' - (object) See _viewPortData().
* </pre>
*/
- public function GetReplyData()
+ public function getReplyData()
{
try {
$imp_compose = IMP_Compose::singleton($this->_vars->imp_compose);
*
* @return boolean True.
*/
- public function CancelCompose()
+ public function cancelCompose()
{
$imp_compose = IMP_Compose::singleton($this->_vars->imp_compose);
$imp_compose->destroy(false);
*
* @return boolean True.
*/
- public function DeleteDraft()
+ public function deleteDraft()
{
$imp_compose = IMP_Compose::singleton($this->_vars->imp_compose);
$imp_compose->destroy(false);
*
* @return boolean True.
*/
- public function DeleteAttach()
+ public function deleteAttach()
{
if ($this->_vars->atc_indices) {
$imp_compose = IMP_Compose::singleton($this->_vars->imp_compose);
* 'portal' - (string) The portal HTML data.
* </pre>
*/
- public function ShowPortal()
+ public function showPortal()
{
// Load the block list. Blocks are located in $dimp_block_list.
// KEY: Block label; VALUE: Horde_Block object
* @return mixed False on failure, or an object (see
* _generateDeleteResult() for format).
*/
- public function PurgeDeleted()
+ public function purgeDeleted()
{
$indices = $GLOBALS['imp_imap']->ob()->utils->fromSequenceString($this->_vars->uid);
$change = $this->_changed($indices);
*
* @return boolean True on success, false on failure.
*/
- public function SendMDN()
+ public function sendMDN()
{
if (!$this->_vars->view || !$this->_vars->uid) {
return false;
* 'success' - (integer) 1 on success, 0 on failure.
* </pre>
*/
- public function PGPSymmetric()
+ public function pgpSymmetric()
{
$result = new stdClass;
$result->success = 0;
* 'success' - (integer) 1 on success, 0 on failure.
* </pre>
*/
- public function PGPPersonal()
+ public function pgpPersonal()
{
$result = new stdClass;
$result->success = false;
* 'success' - (integer) 1 on success, 0 on failure.
* </pre>
*/
- public function SMIMEPersonal()
+ public function smimePersonal()
{
$result = new stdClass;
$result->success = false;
* 'success' - (integer) 1 on success, 0 on failure.
* </pre>
*/
- public function AddAttachment()
+ public function addAttachment()
{
$imp_compose = IMP_Compose::singleton($this->_vars->composeCache);
*
* @return object See self::_dimpDraftAction().
*/
- public function AutoSaveDraft()
+ public function autoSaveDraft()
{
return $this->_dimpDraftAction();
}
*
* @return object See self::_dimpDraftAction().
*/
- public function SaveDraft()
+ public function saveDraft()
{
return $this->_dimpDraftAction();
}
* 'uid' - (integer) TODO
* </pre>
*/
- public function SendMessage()
+ public function sendMessage()
{
list($result, $imp_compose, $headers, $identity) = $this->_dimpComposeSetup();
if (!IMP::canCompose()) {
Horde::addScriptFile('dialog.js', 'imp');
switch ($type) {
- case 'PGPPersonal':
+ case 'pgpPersonal':
$text = _("Enter your personal PGP passphrase.");
break;
- case 'PGPSymmetric':
+ case 'pgpSymmetric':
$text = _("Enter the passphrase used to encrypt this message.");
break;
- case 'SMIMEPersonal':
+ case 'smimePersonal':
$text = _("Enter your personal S/MIME passphrase.");
break;
}
/* Ask for the correct passphrase if this is encrypted
* symmetrically. */
- $status[] = Horde::link('#', '', '', '', IMP::passphraseDialogJS('PGPSymmetric', array('symmetricid' => $symmetric_id)) . ';return false;') . _("You must enter the passphrase used to encrypt this message to view it.") . '</a>';
+ $status[] = Horde::link('#', '', '', '', IMP::passphraseDialogJS('pgpSymmetric', array('symmetricid' => $symmetric_id)) . ';return false;') . _("You must enter the passphrase used to encrypt this message to view it.") . '</a>';
return null;
}
if (is_null($personal_pass)) {
/* Ask for the private key's passphrase if this is
* encrypted asymmetrically. */
- $status[] = Horde::link('#', '', '', '', IMP::passphraseDialogJS('PGPPersonal') . ';return false;') . _("You must enter the passphrase for your PGP private key to view this message.") . '</a>';
+ $status[] = Horde::link('#', '', '', '', IMP::passphraseDialogJS('pgpPersonal') . ';return false;') . _("You must enter the passphrase for your PGP private key to view this message.") . '</a>';
return null;
}
} else {
/* Make sure we have a passphrase. */
$passphrase = $this->_impsmime->getPassphrase();
if (is_null($passphrase)) {
- $status[] = Horde::link('#', '', '', '', IMP::passphraseDialogJS('SMIMEPersonal') . ';return false;') . _("You must enter the passphrase for your S/MIME private key to view this data.") . '</a>';
+ $status[] = Horde::link('#', '', '', '', IMP::passphraseDialogJS('smimePersonal') . ';return false;') . _("You must enter the passphrase for your S/MIME private key to view this data.") . '</a>';
return null;
}
{
switch ($type) {
case 'pgp':
- $js = IMP::passphraseDialogJS('PGPPersonal');
+ $js = IMP::passphraseDialogJS('pgpPersonal');
break;
case 'pgp_symm':
- $js = IMP::passphraseDialogJS('PGPSymmetric', array('symmetricid' => 'imp_compose_' . $cacheid));
+ $js = IMP::passphraseDialogJS('pgpSymmetric', array('symmetricid' => 'imp_compose_' . $cacheid));
break;
case 'smime':
- $js = IMP::passphraseDialogJS('SMIMEPersonal');
+ $js = IMP::passphraseDialogJS('smimePersonal');
break;
}
/* Do MDN processing now. */
if ($imp_ui->MDNCheck($mailbox, $uid, $mime_headers)) {
- $result['msgtext'] .= $imp_ui->formatStatusMsg(array(array('text' => array(_("The sender of this message is requesting a Message Disposition Notification from you when you have read this message."), sprintf(_("Click %s to send the notification message."), Horde::link('', '', '', '', 'DimpCore.doAction(\'SendMDN\',{folder:\'' . $mailbox . '\',uid:' . $uid . '}); return false;', '', '') . _("HERE") . '</a>')))));
+ $result['msgtext'] .= $imp_ui->formatStatusMsg(array(array('text' => array(_("The sender of this message is requesting a Message Disposition Notification from you when you have read this message."), sprintf(_("Click %s to send the notification message."), Horde::link('', '', '', '', 'DimpCore.doAction(\'sendMDN\',{folder:\'' . $mailbox . '\',uid:' . $uid . '}); return false;', '', '') . _("HERE") . '</a>')))));
}
/* Build body text. This needs to be done before we build the
$t->set('sendkey', Horde::link($selfURL->copy()->add('actionID', 'send_public_key'), _("Send Key to Public Keyserver")));
$t->set('personalkey-public-help', Horde_Help::link('imp', 'pgp-personalkey-public'));
$passphrase = $imp_pgp->getPassphrase('personal');
- $t->set('passphrase', (empty($passphrase)) ? Horde::link('#', _("Enter Passphrase"), null, null, IMP::passphraseDialogJS('PGPPersonal') . ';return false;') . _("Enter Passphrase") : Horde::link($selfURL->copy()->add('actionID', 'unset_passphrase'), _("Unload Passphrase")) . _("Unload Passphrase"));
+ $t->set('passphrase', (empty($passphrase)) ? Horde::link('#', _("Enter Passphrase"), null, null, IMP::passphraseDialogJS('pgpPersonal') . ';return false;') . _("Enter Passphrase") : Horde::link($selfURL->copy()->add('actionID', 'unset_passphrase'), _("Unload Passphrase")) . _("Unload Passphrase"));
$t->set('viewprivate', Horde::link($selfURL->copy()->add('actionID', 'view_personal_private_key'), _("View Personal Private Key"), null, 'view_key'));
$t->set('infoprivate', Horde::link($selfURL->copy()->add('actionID', 'info_personal_private_key'), _("Information on Personal Private Key"), null, 'info_key'));
$t->set('personalkey-private-help', Horde_Help::link('imp', 'pgp-personalkey-private'));
$t->set('viewpublic', Horde::link($selfURL->copy()->add('actionID', 'view_personal_public_key'), _("View Personal Public Key"), null, 'view_key'));
$t->set('infopublic', Horde::link($selfURL->copy()->add('actionID', 'info_personal_public_key'), _("Information on Personal Public Key"), null, 'info_key'));
$passphrase = $imp_smime->getPassphrase();
- $t->set('passphrase', empty($passphrase) ? Horde::link('#', _("Enter Passphrase"), null, null, IMP::passphraseDialogJS('SMIMEPersonal') . ';return false;') . _("Enter Passphrase") : Horde::link($selfURL->copy()->add('actionID', 'unset_passphrase'), _("Unload Passphrase")) . _("Unload Passphrase"));
+ $t->set('passphrase', empty($passphrase) ? Horde::link('#', _("Enter Passphrase"), null, null, IMP::passphraseDialogJS('smimePersonal') . ';return false;') . _("Enter Passphrase") : Horde::link($selfURL->copy()->add('actionID', 'unset_passphrase'), _("Unload Passphrase")) . _("Unload Passphrase"));
$t->set('viewprivate', Horde::link($selfURL->copy()->add('actionID', 'view_personal_private_key'), _("View Personal Private Key"), null, 'view_key'));
$t->set('deletekeypair', addslashes(_("Are you sure you want to delete your keypair? (This is NOT recommended!)")));
$t->set('personalkey-delete-help', Horde_Help::link('imp', 'smime-delete-personal-certs'));
$compose_disable = !IMP::canCompose();
?>
-<form id="compose" name="compose" enctype="multipart/form-data" action="<?php echo Horde::getServiceLink('ajax', 'imp') ?>AddAttachment" method="post" target="submit_frame">
+<form id="compose" name="compose" enctype="multipart/form-data" action="<?php echo Horde::getServiceLink('ajax', 'imp') ?>addAttachment" method="post" target="submit_frame">
<?php echo Horde_Util::formInput() ?>
<input type="hidden" id="last_identity" name="last_identity" value="<?php echo (int)$selected_identity ?>" />
<input type="hidden" id="html" name="html" value="<?php echo intval($rte && $compose_html) ?>" />
logout: function()
{
this.is_logout = true;
- this.redirect(Kronolith.conf.URI_AJAX + 'LogOut');
+ this.redirect(Kronolith.conf.URI_AJAX + 'logOut');
},
redirect: function(url)
});
});
this.startLoading('search', query);
- this.doAction('SearchEvents',
+ this.doAction('searchEvents',
{ cals: cals.toJSON(), query: query },
function(r) {
// Hide spinner.
calendar = cal.join('|');
this.startLoading(calendar, start + end);
this.storeCache($H(), calendar);
- this.doAction('ListEvents',
+ this.doAction('listEvents',
{ start: start,
end: end,
cal: calendar,
loading = true;
this.loading++;
$('kronolithLoading').show();
- this.doAction('ListTasks',
+ this.doAction('listTasks',
{ type: type,
list: list },
function(r) {
this.updateTasklistDropDown();
if (id) {
RedBox.loading();
- this.doAction('GetTask', { list: tasklist, id: id }, this.editTaskCallback.bind(this));
+ this.doAction('getTask', { list: tasklist, id: id }, this.editTaskCallback.bind(this));
} else {
$('kronolithTaskId').clear();
$('kronolithTaskOldList').clear();
taskid = $F('kronolithTaskId');
this.loading++;
$('kronolithLoading').show();
- this.doAction('SaveTask',
+ this.doAction('saveTask',
$H($('kronolithTaskForm').serialize({ hash: true }))
.merge({ sig: this.tasktype }),
function(r) {
this.editCalendarCallback(calendar);
} else {
RedBox.loading();
- this.doAction('ChunkContent', { chunk: 'calendar' }, function(r) {
+ this.doAction('chunkContent', { chunk: 'calendar' }, function(r) {
if (r.response.chunk) {
RedBox.showHtml(r.response.chunk);
this.editCalendarCallback(calendar);
var type = form.id.replace(/kronolithCalendarForm/, ''),
data = form.serialize({ hash: true });
- this.doAction('SaveCalendar',
+ this.doAction('saveCalendar',
data,
function(r) {
if (r.response.saved) {
Horde_Calendar.hideCal();
var cal = $F('kronolithEventCalendar'),
eventid = $F('kronolithEventId');
- this.doAction('DeleteEvent',
+ this.doAction('deleteEvent',
{ cal: cal, id: eventid },
function(r) {
if (r.response.deleted) {
case 'kronolithTaskDelete':
var tasklist = $F('kronolithTaskOldList'),
taskid = $F('kronolithTaskId');
- this.doAction('DeleteTask',
+ this.doAction('deleteTask',
{ list: tasklist, id: taskid },
function(r) {
if (r.response.deleted) {
var taskid = elt.up('tr.kronolithTaskRow', 0).retrieve('taskid'),
tasklist = elt.up('tr.kronolithTaskRow', 0).retrieve('tasklist');
this.toggleCompletionClass(taskid);
- this.doAction('ToggleCompletion',
+ this.doAction('toggleCompletion',
{ list: tasklist, id: taskid },
function(r) {
if (r.response.toggled) {
e.stop();
return;
}
- this.doAction('GetRemoteInfo',
+ this.doAction('getRemoteInfo',
params,
function(r) {
if (r.response.success) {
params.username = $F('kronolithCalendarremoteUsername');
params.password = $F('kronolithCalendarremotePassword');
}
- this.doAction('GetRemoteInfo',
+ this.doAction('getRemoteInfo',
params,
function(r) {
if (r.response.success) {
var form = elt.up('form'),
type = form.id.replace(/kronolithCalendarForm/, ''),
calendar = $F('kronolithCalendar' + type + 'Id');
- this.doAction('DeleteCalendar',
+ this.doAction('deleteCalendar',
{ type: type, calendar: calendar },
function(r) {
if (r.response.deleted) {
calendar = calClass + '_' + calendar;
break;
}
- this.doAction('SaveCalPref', { toggle_calendar: calendar });
+ this.doAction('saveCalPref', { toggle_calendar: calendar });
e.stop();
return;
}
drop.insert(el);
this.startLoading(cal, start + end);
- this.doAction('UpdateEvent',
+ this.doAction('updateEvent',
{ cal: cal,
id: eventid,
view: this.view,
end: event.value.end });
}
this.doAction(
- 'UpdateEvent',
+ 'updateEvent',
{ cal: event.value.calendar,
id: event.key,
view: this.view,
$('kronolithEventSave').show();
$('kronolithEventDelete').show();
$('kronolithEventForm').down('.kronolithFormActions .kronolithSeparator').show();
- this.doAction('ListTopTags', {}, this.topTags);
+ this.doAction('listTopTags', {}, this.topTags);
if (id) {
RedBox.loading();
- this.doAction('GetEvent', { cal: calendar, id: id, date: date }, this.editEventCallback.bind(this));
+ this.doAction('getEvent', { cal: calendar, id: id, date: date }, this.editEventCallback.bind(this));
} else {
$('kronolithEventTags').autocompleter.init();
var d;
end = viewDates[1].dateString();
$('kronolithEventTags').autocompleter.shutdown();
this.startLoading(cal, start + end);
- this.doAction('SaveEvent',
+ this.doAction('saveEvent',
$H($('kronolithEventForm').serialize({ hash: true }))
.merge({
view: this.view,
$('kronolithQuickinsert').fade();
this.startLoading(null, start + end);
- this.doAction('QuickSaveEvent',
+ this.doAction('quickSaveEvent',
$H({ text: text,
view: this.view,
view_start: start,
var tr = new Element('tr'), i;
if (attendee.e) {
this.fbLoading++;
- this.doAction('GetFreeBusy',
+ this.doAction('getFreeBusy',
{ email: attendee.e },
function(r) {
this.fbLoading--;
/**
* TODO
*/
- public function ListEvents()
+ public function listEvents()
{
$start = new Horde_Date($this->_vars->start);
$end = new Horde_Date($this->_vars->end);
/**
* TODO
*/
- public function GetEvent()
+ public function getEvent()
{
$result = new stdClass;
/**
* TODO
*/
- public function SaveEvent()
+ public function saveEvent()
{
$result = $this->_signedResponse($this->_vars->cal);
/**
* TODO
*/
- public function QuickSaveEvent()
+ public function quickSaveEvent()
{
try {
$event = Kronolith::quickAdd($this->_vars->text, Kronolith::getDefaultCalendar(Horde_Perms::EDIT));
/**
* TODO
*/
- public function UpdateEvent()
+ public function updateEvent()
{
$result = $this->_signedResponse($this->_vars->cal);
/**
* TODO
*/
- public function DeleteEvent()
+ public function deleteEvent()
{
$result = new stdClass;
/**
* TODO
*/
- public function SearchEvents()
+ public function searchEvents()
{
$query = Horde_Serialize::unserialize($this->_vars->query, Horde_Serialize::JSON);
if (!isset($query->start)) {
/**
* TODO
*/
- public function ListTasks()
+ public function listTasks()
{
if (!$GLOBALS['registry']->hasMethod('tasks/listTasks')) {
return false;
/**
* TODO
*/
- public function GetTask()
+ public function getTask()
{
if (!$GLOBALS['registry']->hasMethod('tasks/getTask') ||
!isset($this->_vars->id) ||
/**
* TODO
*/
- public function SaveTask()
+ public function saveTask()
{
if (!$GLOBALS['registry']->hasMethod('tasks/updateTask') ||
!$GLOBALS['registry']->hasMethod('tasks/addTask')) {
/**
* TODO
*/
- public function DeleteTask()
+ public function deleteTask()
{
$result = new stdClass;
/**
* TODO
*/
- public function ToggleCompletion()
+ public function toggleCompletion()
{
$result = new stdClass;
/**
* TODO
*/
- public function ListTopTags()
+ public function listTopTags()
{
$this->notify = false;
$tagger = new Kronolith_Tagger();
/**
* TODO
*/
- public function GetFreeBusy()
+ public function getFreeBusy()
{
$result = new stdClass;
try {
/**
* TODO
*/
- public function SearchCalendars()
+ public function searchCalendars()
{
$result = new stdClass;
$result->events = 'Searched for calendars: ' . $this->_vars->title;
/**
* TODO
*/
- public function SaveCalendar()
+ public function saveCalendar()
{
$calendar_id = $this->_vars->calendar;
$result = new stdClass;
/**
* TODO
*/
- public function DeleteCalendar()
+ public function deleteCalendar()
{
$calendar_id = $this->_vars->calendar;
$result = new stdClass;
/**
* TODO
*/
- public function GetRemoteInfo()
+ public function getRemoteInfo()
{
$params = array('timeout' => 15);
if ($user = $this->_vars->username) {
/**
* TODO
*/
- public function SaveCalPref()
+ public function saveCalPref()
{
return false;
}
- public function ChunkContent()
+ public function chunkContent()
{
$chunk = basename(Horde_Util::getPost('chunk'));
$result = new stdClass;