Skip to content

Instantly share code, notes, and snippets.

@tivac
Created May 11, 2010 18:16
Show Gist options
  • Save tivac/397631 to your computer and use it in GitHub Desktop.
Save tivac/397631 to your computer and use it in GitHub Desktop.
Y.on(
"click",
function (e) {
var function_code = e.target.get("id").split("-")[1];
Y.log('handling click...' + function_code, "info", log_key);
var container = Y.one("#manage_action");
Y.io(
menu_config["base_url"] + function_code,
{
on: {
complete : function (txnId, response) {
container.set("innerHTML", response.responseText);
},
}
}
);
},
Y.all("#manage_menu a.yui3-menuitem-content, #manage_menu em.yui3-menuitem-content")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment