The API ignores titles consists only on spaces and returns a response
without a "query" key.
Bug: T185400
Change-Id: Ia365f6660c0da0138a9035aad8dfcda38fab7733
timeout: function () {
var $spinnerDestCheck, title;
timeout: function () {
var $spinnerDestCheck, title;
- if ( !ajaxUploadDestCheck || this.nameToCheck === '' ) {
+ if ( !ajaxUploadDestCheck || this.nameToCheck.trim() === '' ) {
return;
}
$spinnerDestCheck = $.createSpinner().insertAfter( '#wpDestFile' );
return;
}
$spinnerDestCheck = $.createSpinner().insertAfter( '#wpDestFile' );