diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-02-13 08:39:39 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-02-13 08:39:39 +0000 |
| commit | 6651a8b02b6f67371b1e87c5ede47917d35bb492 (patch) | |
| tree | aab429cf8ef37a733bb2b134c8ceeabb4203d7b0 /roundcubemail/program/steps/settings/func.inc | |
| parent | c085f17d5f8b7018dedfe9b49fab8a2cc8688df6 (diff) | |
- Added mailto: protocol handler registration link in User Preferences (#1486580)
git-svn-id: https://svn.roundcube.net/trunk@5876 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/settings/func.inc')
| -rw-r--r-- | roundcubemail/program/steps/settings/func.inc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/settings/func.inc b/roundcubemail/program/steps/settings/func.inc index 35e015dc8..fc836ed50 100644 --- a/roundcubemail/program/steps/settings/func.inc +++ b/roundcubemail/program/steps/settings/func.inc @@ -159,7 +159,8 @@ function rcmail_user_prefs($current=null) case 'general': $blocks = array( - 'main' => array('name' => Q(rcube_label('mainoptions'))), + 'main' => array('name' => Q(rcube_label('mainoptions'))), + 'browser' => array('name' => Q(rcube_label('browseroptions'))), ); // language selection @@ -263,6 +264,16 @@ function rcmail_user_prefs($current=null) } } + $product_name = $RCMAIL->config->get('product_name', 'Roundcube Webmail'); + $RCMAIL->output->add_script(sprintf("%s.check_protocol_handler('%s', '#mailtoprotohandler');", + JS_OBJECT_NAME, JQ($product_name)), 'foot'); + + $blocks['browser']['options']['mailtoprotohandler'] = array( + 'content' => html::a(array( + 'href' => '#', + 'id' => 'mailtoprotohandler'), Q(rcube_label('mailtoprotohandler'))), + ); + break; // Mailbox view (mail screen) |
