lib/thoth/public/js/admin/name.js
/**
   * Shows an error message associated with the specified name input element.
   *
   * @method showError
   * @param {HTMLElement} el name input element
   * @param {String} message error message
   * @private
   */
Shows an error message associated with the specified name input element.
@method showError
@param {HTMLElement} el name input element
@param {String} message error message
@private
Shows an error message associated with the specified name input element . @method showError @param { HTMLElement } el name input element @param { String } message error message @private
function showError(el, message) {
    var errorEl = yud.get(el.id + '-error');
    if (!errorEl) {
      errorEl = d.createElement('p');
      errorEl.id        = el.id + '-error';
      errorEl.className = 'flash error';
      yud.insertAfter(errorEl, el);
    }
    errorEl.innerHTML = '';
    errorEl.appendChild(d.createTextNode(message));
  }
function showError ( el , message ) { var errorEl = yud . get ( el . id + '-error' ) ; if ( ! errorEl ) { errorEl = d . createElement ( 'p' ) ; errorEl . id = el . id + '-error' ; errorEl . className = 'flash error' ; yud . insertAfter ( errorEl , el ) ; } errorEl . innerHTML = '' ; errorEl . appendChild ( d . createTextNode ( message ) ) ; }
Shows an error message associated with the specified name input element.
Shows an error message associated with the specified name input element .