alecpl
2008-07-21 808fb26b619bb858cd77010a7d42648e21f07f81
#1485173: fixed empty body check


1 files modified
6 ■■■■ changed files
program/js/app.js 6 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -1889,9 +1889,9 @@
      }
    // check for empty body
    if ((input_message.value == '' &&
         (!window.tinyMCE || tinyMCE.get('compose-body').getContent() == '')) &&
        !confirm(this.get_label('nobodywarning')))
    if ((((!window.tinyMCE || !tinyMCE.get('compose-body')) && input_message.value == '')
    || (window.tinyMCE && tinyMCE.get('compose-body') && tinyMCE.get('compose-body').getContent() == ''))
    && !confirm(this.get_label('nobodywarning')))
      {
      input_message.focus();
      return false;