Fix issue where subject input might get filled with "null" string (IE8)

pull/156/head
Aleksander Machniak 11 years ago
parent 303e21fc63
commit b7fb20af3a

@ -3688,7 +3688,7 @@ function rcube_webmail()
if (elem.type == 'button' || elem.type == 'submit' || (elem.type == 'hidden' && elem.name != '_is_html')) { if (elem.type == 'button' || elem.type == 'submit' || (elem.type == 'hidden' && elem.name != '_is_html')) {
break; break;
} }
formdata[elem.name] = elem.type != 'checkbox' || elem.checked ? elem.value : ''; formdata[elem.name] = elem.type != 'checkbox' || elem.checked ? $(elem).val() : '';
if (formdata[elem.name] != '' && elem.type != 'hidden') if (formdata[elem.name] != '' && elem.type != 'hidden')
empty = false; empty = false;

Loading…
Cancel
Save