Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
fixed error clearing on manage authors page (bug 731160)
Browse files Browse the repository at this point in the history
  • Loading branch information
spasovski committed Mar 1, 2012
1 parent 959cd5e commit 005e529
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions media/js/devreg/devhub.js
Expand Up @@ -824,15 +824,16 @@ function initAuthorFields() {
}
if (tgt.val().length > 2) {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(function () {
timeout = setTimeout(function() {
tgt.addClass("ui-autocomplete-loading")
.removeClass("invalid")
.removeClass("valid");
request = $.ajax({
url: tgt.attr("data-src"),
data: {q: tgt.val()},
success: function(data) {
tgt.removeClass("ui-autocomplete-loading");
tgt.removeClass('ui-autocomplete-loading formerror')
.removeAttr('title');
if (data.status == 1) {
tgt.addClass("valid");
} else {
Expand Down
5 changes: 3 additions & 2 deletions media/js/zamboni/devhub.js
Expand Up @@ -1085,15 +1085,16 @@ function initAuthorFields() {
}
if (tgt.val().length > 2) {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(function () {
timeout = setTimeout(function() {
tgt.addClass("ui-autocomplete-loading")
.removeClass("invalid")
.removeClass("valid");
request = $.ajax({
url: tgt.attr("data-src"),
data: {q: tgt.val()},
success: function(data) {
tgt.removeClass("ui-autocomplete-loading");
tgt.removeClass('ui-autocomplete-loading formerror')
.removeAttr('title');
if (data.status == 1) {
tgt.addClass("valid");
} else {
Expand Down

0 comments on commit 005e529

Please sign in to comment.