B2G/gaia/apps/sms/js/thread_ui.js
// Method for updating the header when needed
Method for updating the header when needed
Method for updating the header when needed
function thui_updateComposerHeader() {
    var recipientCount = this.recipients.length;
    if (recipientCount > 0) {
      this.contactPickButton.classList.add('disabled');
      this.headerText.textContent =
        navigator.mozL10n.get('recipient', {
          n: recipientCount
      });
    } else {
      this.contactPickButton.classList.remove('disabled');
      this.headerText.textContent = navigator.mozL10n.get('newMessage');
    }
    this.enableSend();
  }
function thui_updateComposerHeader ( ) { var recipientCount = this . recipients . length ; if ( recipientCount > 0 ) { this . contactPickButton . classList . add ( 'disabled' ) ; this . headerText . textContent = navigator . mozL10n . get ( 'recipient' , { n : recipientCount } ) ; } else { this . contactPickButton . classList . remove ( 'disabled' ) ; this . headerText . textContent = navigator . mozL10n . get ( 'newMessage' ) ; } this . enableSend ( ) ; }
Method for updating the header when needed
Method for updating the header when needed
// Check if we need to enable send button.