Skip to content

Instantly share code, notes, and snippets.

@brianjmiller
Created January 12, 2011 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjmiller/776202 to your computer and use it in GitHub Desktop.
Save brianjmiller/776202 to your computer and use it in GitHub Desktop.
YUI3 AutoComplete Spinner
//input.yui3-aclist-input-loading {
// background-image: url(spinner.gif);
// background-repeat: no-repeat;
// background-position: right;
//}
desc_node.ac.on(
"query",
function (e) {
Y.log(Clazz.NAME + "::_afterAddRecord - onQuery");
desc_node.addClass("yui3-aclist-input-loading");
}
);
desc_node.ac.after(
"results",
function (e) {
Y.log(Clazz.NAME + "::_afterAddRecord - afterResults");
desc_node.removeClass("yui3-aclist-input-loading");
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment