lib/thoth/public/js/admin/name.js
/**
   * Submits an Ajax request to determine if the current name is valid and not
   * already taken.
   *
   * @method checkName
   * @param {HTMLElement} el name input element
   * @param {String} name name to check
   * @private
   */
Submits an Ajax request to determine if the current name is valid and not
already taken.

@method checkName
@param {HTMLElement} el name input element
@param {String} name name to check
@private
Submits an Ajax request to determine if the current name is valid and not already taken . @method checkName @param { HTMLElement } el name input element @param { String } name name to check @private
function checkName(el, name) {
    if (conn && yuc.isCallInProgress(conn)) {
      yuc.abort(conn);
    }
    var url = '/api/' + (yud.hasClass(el, 'name-post') ? 'post' : 'page') +
        '/check_name?name=' + encodeURIComponent(name);
    conn = yuc.asyncRequest('GET', url, {
      argument: el,
      success : handleCheckResponse,
      timeout : 1000
    });
  }
function checkName ( el , name ) { if ( conn && yuc . isCallInProgress ( conn ) ) { yuc . abort ( conn ) ; } var url = '/api/' + ( yud . hasClass ( el , 'name-post' ) ? 'post' : 'page' ) + '/check_name?name=' + encodeURIComponent ( name ) ; conn = yuc . asyncRequest ( 'GET' , url , { argument : el , success : handleCheckResponse , timeout : 1000 } ) ; }
Submits an Ajax request to determine if the current name is valid and not
 already taken.
Submits an Ajax request to determine if the current name is valid and not already taken .