From 491a6e2901938f49c1e14907f9da615286c81719 Mon Sep 17 00:00:00 2001 From: alecpl Date: Tue, 16 Sep 2008 13:58:17 +0000 Subject: - Allow and use spellcheck attribute for input/textarea fields (#1485060) --- program/steps/mail/compose.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program/steps/mail') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 02d062c1f..151b46146 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -241,7 +241,7 @@ function rcmail_compose_headers($attrib) if ($fname && $field_type) { // pass the following attributes to the form class - $field_attrib = array('name' => $fname); + $field_attrib = array('name' => $fname, 'spellcheck' => 'false'); foreach ($attrib as $attr => $value) if (in_array($attr, $allow_attrib)) $field_attrib[$attr] = $value; @@ -650,6 +650,7 @@ function rcmail_compose_subject($attrib) unset($attrib['form']); $attrib['name'] = '_subject'; + $attrib['spellcheck'] = 'true'; $textfield = new html_inputfield($attrib); $subject = ''; -- cgit v1.2.3