Ticket #1485143 (closed Bugs: fixed)
app.js ... empty body validation
| Reported by: | rosali | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-beta |
| Component: | User Interface | Version: | 0.2-alpha |
| Severity: | normal | Keywords: | |
| Cc: |
Description
around line 1824:
IE 7 throws a js error and aborts sending
Tiny Update has broken the validation because input_message.value contains <pre></pre> instead of
Try this code:
// check for empty body // bugfix: IE7 throwed error with old code also TinyMCE adds pre tags ...
if (((input_message.value ==
input_message.value.toLowerCase() == '<pre></pre>') &&
(!tinyMCE.get('compose-body')
tinyMCE.get('compose-body').getContent() == )) && !confirm(this.get_label('nobodywarning')))
{ if(!tinyMCE.get('compose-body'))
input_message.focus();
return false; }
Change History
Note: See TracTickets for help on using tickets.Download in other formats:
