diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-03-21 18:32:04 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-03-21 18:33:19 +0100 |
commit | 5934e238242cb0d96e128bfad3905809b5aeb093 (patch) | |
tree | 4bff16b02d22ee55ee009cd1d17b30bba95f798b /program/steps | |
parent | e5bb1357a5bad2f5ed9b488425d6b195296ca595 (diff) |
Disable link registering mailto: protocol handler if not supported by the browser (#1489569)
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/settings/func.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 7c36df3b1..307be8c8e 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -376,13 +376,16 @@ function rcmail_user_prefs($current = null) if ($current) { $product_name = $RCMAIL->config->get('product_name', 'Roundcube Webmail'); $RCMAIL->output->add_script(sprintf("%s.check_protocol_handler('%s', '#mailtoprotohandler');", - rcmail_output::JS_OBJECT_NAME, rcube::JQ($product_name)), 'foot'); + rcmail_output::JS_OBJECT_NAME, rcube::JQ($product_name)), 'docready'); } $blocks['browser']['options']['mailtoprotohandler'] = array( 'content' => html::a(array( - 'href' => '#', - 'id' => 'mailtoprotohandler'), rcube::Q($RCMAIL->gettext('mailtoprotohandler'))), + 'href' => '#', + 'id' => 'mailtoprotohandler' + ), + rcube::Q($RCMAIL->gettext('mailtoprotohandler'))) . + html::span('mailtoprotohandler-status', ''), ); break; |