Skip to content

Instantly share code, notes, and snippets.

@apipkin
Created May 11, 2010 19:26
Show Gist options
  • Save apipkin/397739 to your computer and use it in GitHub Desktop.
Save apipkin/397739 to your computer and use it in GitHub Desktop.
var _menuClick = 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.delegate('click', _menuClick,'#manage_menu', '.yui3-menuitem-content');
/*
Y.on(
"click",
_menuClick,
"#manage_menu a.yui3-menuitem-content"
);
Y.on(
"click",
_menuClickLoadWidget,
"#manage_menu em.yui3-menuitem-content"
);
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment