Ticket #1485143 (closed Bugs: fixed)

Opened 2 months ago

Last modified 5 weeks ago

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

Changed 2 months ago by alec

  • milestone changed from later to 0.2-beta

Changed 5 weeks ago by alec

  • status changed from new to closed
  • resolution set to fixed

Fixed in r1611.

Note: See TracTickets for help on using tickets.