lib/thoth/public/js/admin/name.js
/**
   * Submits an Ajax request for a name suggestion based on the contents of the
   * specified title input element.
   *
   * @method suggestName
   * @param {HTMLElement} el title input element
   * @param {String} title title string
   * @private
   */
Submits an Ajax request for a name suggestion based on the contents of the
specified title input element.

@method suggestName
@param {HTMLElement} el title input element
@param {String} title title string
@private
Submits an Ajax request for a name suggestion based on the contents of the specified title input element . @method suggestName @param { HTMLElement } el title input element @param { String } title title string @private
function suggestName(el, title) {
    if (conn && yuc.isCallInProgress(conn)) {
      yuc.abort(conn);
    }
    var url = '/api/' + (yud.hasClass(el, 'title-post') ? 'post' : 'page') +
        '/suggest_name?title=' + encodeURIComponent(title);
    conn = yuc.asyncRequest('GET', url, {
      argument: el,
      success : handleSuggestResponse,
      timeout : 1000
    });
  }
function suggestName ( el , title ) { if ( conn && yuc . isCallInProgress ( conn ) ) { yuc . abort ( conn ) ; } var url = '/api/' + ( yud . hasClass ( el , 'title-post' ) ? 'post' : 'page' ) + '/suggest_name?title=' + encodeURIComponent ( title ) ; conn = yuc . asyncRequest ( 'GET' , url , { argument : el , success : handleSuggestResponse , timeout : 1000 } ) ; }
Submits an Ajax request for a name suggestion based on the contents of the
 specified title input element.
Submits an Ajax request for a name suggestion based on the contents of the specified title input element .