alecpl
2008-07-25 5f0724f8adca9b545b89e71287f8276e86881868
#1485143: fixed empty body validation errors on IE


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